Discussion:
[Ipsec-tools-devel] [PATCH v2 3/5] Check for GLOB_TILDE
Jörg Krause
2016-04-22 09:20:29 UTC
Permalink
Check for GLOB_TILDE

GLOB_TILDE is a GNU extension and might not be available on some C
libraries.
This fixes build errors with the musl C library.

Signed-off-by: Jörg Krause <***@embedded.rocks>

diff -purN ipsec-tools-0.8.2.orig/src/racoon/misc.h ipsec-tools-
0.8.2/src/racoon/misc.h
--- ipsec-tools-0.8.2.orig/src/racoon/misc.h 2008-07-15
02:47:09.000000000 +0200
+++ ipsec-tools-0.8.2/src/racoon/misc.h 2016-04-22
09:32:15.040242720 +0200
@@ -60,6 +60,11 @@ extern void close_on_exec __P((int fd));
     TAILQ_FOREACH_REVERSE(var, head, headname, field)
 #endif
 
+/* GLOB_TILDE is a GNU extension and might not be available on some C
libs. */
+#ifndef GLOB_TILDE
+#define GLOB_TILDE 0
+#endif
+
 #ifndef HAVE_STRLCPY
 #define strlcpy(d,s,l) (strncpy(d,s,l), (d)[(l)-1] = '\0')
 #endif

Loading...