summaryrefslogtreecommitdiff
blob: 441689febd5d340eb3c90315f1121d97b945cf34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
musl doesn't implement GLOB_BRACE, simply disable it.

https://bugs.gentoo.org/922286
https://github.com/rpm-software-management/rpm/issues/2844
--- a/rpmio/rpmglob.c
+++ b/rpmio/rpmglob.c
@@ -33,6 +33,10 @@
 
 #include "debug.h"
 
+#ifndef GLOB_BRACE
+#define GLOB_BRACE 0
+#endif
+
 /* Return 1 if pattern contains a magic char, see glob(7) for a list */
 static int ismagic(const char *pattern)
 {