void-packages/srcpkgs/gnome-builder/patches/dont-require-FNM_EXTMATCH.patch

26 lines
951 B
Diff
Raw Normal View History

2019-08-03 10:25:24 +00:00
commit ec3f94cf7430b8c4120a9a2b352a238163696bec
Author: Ting-Wei Lan <lantw@src.gnome.org>
Date: Mon Jul 29 23:24:27 2019 +0800
foundry: don't require FNM_EXTMATCH
If the system doesn't support FNM_EXTMATCH, we just fallback to 0. It
seems to be safe because nothing depends on its extra features currently.
diff --git src/libide/foundry/ide-simple-build-system-discovery.c src/libide/foundry/ide-simple-build-system-discovery.c
index c62eeb155..57883996f 100644
--- src/libide/foundry/ide-simple-build-system-discovery.c
+++ src/libide/foundry/ide-simple-build-system-discovery.c
@@ -289,7 +289,11 @@ ide_simple_build_system_discovery_match (IdeSimpleBuildSystemDiscovery *self,
g_assert (IDE_IS_SIMPLE_BUILD_SYSTEM_DISCOVERY (self));
g_assert (name != NULL);
+#ifdef FNM_EXTMATCH
return fnmatch (priv->glob, name, FNM_EXTMATCH) == 0;
+#else
+ return fnmatch (priv->glob, name, 0) == 0;
+#endif
}
static gboolean