fstoools: add define for GLOB_ONLYDIR
authorRosen Penev <rosenp@gmail.com>
Wed, 25 Mar 2020 23:27:47 +0000 (16:27 -0700)
committerPetr Štetiar <ynezz@true.cz>
Sat, 11 Jul 2020 11:43:56 +0000 (13:43 +0200)
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>
libfstools/overlay.c

index 14214a3104d9c6ae670437c570c46200db259ed4..39215d5926a9b72728f6f9e201e0580c4bf78f58 100644 (file)
 #include "libfstools.h"
 #include "volume.h"
 
+#ifndef GLOB_ONLYDIR
+#define GLOB_ONLYDIR 0x100
+#endif
+
 #define SWITCH_JFFS2 "/tmp/.switch_jffs2"
 
 static bool keep_sysupgrade;