1From d8972ff7fa0a30e199144ba135223bf561874e01 Mon Sep 17 00:00:00 2001 2From: Alexander Kanavin <alex@linutronix.de> 3Date: Tue, 16 Jan 2024 09:59:26 +0100 4Subject: [PATCH] rpmio/rpmglob.c: avoid using GLOB_BRACE if undefined by C 5 library 6 7This addresses musl failures; if there is code out there relying on 8those braces, it needs to be fixed when used on musl. 9 10This is unlikely to be trivially fixable upstream. 11 12Upstream-Status: Inappropriate [reported at https://github.com/rpm-software-management/rpm/issues/2844] 13Signed-off-by: Alexander Kanavin <alex@linutronix.de> 14--- 15 rpmio/rpmglob.c | 6 ++++++ 16 1 file changed, 6 insertions(+) 17 18diff --git a/rpmio/rpmglob.c b/rpmio/rpmglob.c 19index eb439cad8..1eef0b851 100644 20--- a/rpmio/rpmglob.c 21+++ b/rpmio/rpmglob.c 22@@ -33,6 +33,12 @@ 23 24 #include "debug.h" 25 26+/* Don't fail if the standard C library 27++ * doesn't provide brace expansion */ 28+#ifndef GLOB_BRACE 29+#define GLOB_BRACE 0 30+#endif 31+ 32 /* Return 1 if pattern contains a magic char, see glob(7) for a list */ 33 static int ismagic(const char *pattern) 34 { 35