diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-03-25 16:27:47 -0700 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-07-11 13:43:56 +0200 |
commit | 5345343828df944ae247d91cc77182f87559bc9a (patch) | |
tree | 6bdcda4706bdd8d1f1051ec72b13c71bcc3c551f | |
parent | d34ea8eb1e12259a315cdef7aa0cd3ceaea68e00 (diff) | |
download | fstools-5345343828df944ae247d91cc77182f87559bc9a.tar.gz |
fstoools: add define for GLOB_ONLYDIR
This was originally a patch for musl. It is not present in musl as it is a
GNU extension.
Place it here where it belongs.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
-rw-r--r-- | libfstools/overlay.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libfstools/overlay.c b/libfstools/overlay.c index 14214a3..39215d5 100644 --- a/libfstools/overlay.c +++ b/libfstools/overlay.c @@ -30,6 +30,10 @@ #include "libfstools.h" #include "volume.h" +#ifndef GLOB_ONLYDIR +#define GLOB_ONLYDIR 0x100 +#endif + #define SWITCH_JFFS2 "/tmp/.switch_jffs2" static bool keep_sysupgrade; |