]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
dumm: Undefine _GNU_SOURCE before including <ruby.h>, as it usually redefines it
authorMartin Willi <martin@revosec.ch>
Wed, 9 Jul 2014 08:53:36 +0000 (10:53 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 9 Jul 2014 08:53:36 +0000 (10:53 +0200)
src/dumm/ext/dumm.c

index 03ecbe40dee48c1ecedf99fb4571839d028f8a95..d791c089d17edc9326d3e72f19c1ed82ab087d93 100644 (file)
@@ -32,6 +32,8 @@
 #undef PACKAGE_URL
 /* avoid redefintiion of snprintf etc. */
 #define RUBY_DONT_SUBST
+/* undef our _GNU_SOURCE, as it gets redefined by <ruby.h> */
+#undef _GNU_SOURCE
 #include <ruby.h>
 
 static dumm_t *dumm;