immortalwrt/toolchain/musl/patches/100-add_glob_onlydir.patch
Tianling Shen e465b69a4e
Revert "toolchain/musl: remove several GNU headers"
This reverts commit c710efe18064e8e33f1f1348d19dd89e25c5bf0c.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2022-03-16 17:36:31 +08:00

12 lines
255 B
Diff

--- a/include/glob.h
+++ b/include/glob.h
@@ -34,6 +34,8 @@ void globfree(glob_t *);
#define GLOB_TILDE 0x1000
#define GLOB_TILDE_CHECK 0x4000
+#define GLOB_ONLYDIR 0x100
+
#define GLOB_NOSPACE 1
#define GLOB_ABORTED 2
#define GLOB_NOMATCH 3