[gnome-builder/gnome-builder-3-32] foundry: add support for extended matching



commit aef207cbca8317d389d73f75ba321aa0106f0460
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 4 18:21:30 2019 -0700

    foundry: add support for extended matching

 src/libide/foundry/ide-simple-build-system-discovery.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/foundry/ide-simple-build-system-discovery.c 
b/src/libide/foundry/ide-simple-build-system-discovery.c
index 571e81185..c62eeb155 100644
--- a/src/libide/foundry/ide-simple-build-system-discovery.c
+++ b/src/libide/foundry/ide-simple-build-system-discovery.c
@@ -22,6 +22,9 @@
 
 #include "config.h"
 
+#ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+#endif
 #include <fnmatch.h>
 
 #include "ide-simple-build-system-discovery.h"
@@ -286,7 +289,7 @@ ide_simple_build_system_discovery_match (IdeSimpleBuildSystemDiscovery *self,
   g_assert (IDE_IS_SIMPLE_BUILD_SYSTEM_DISCOVERY (self));
   g_assert (name != NULL);
 
-  return fnmatch (priv->glob, name, 0) == 0;
+  return fnmatch (priv->glob, name, FNM_EXTMATCH) == 0;
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]