Avoid that ruby 1.9 redefines snprintf(3) etc.
authorTobias Brunner <tobias@strongswan.org>
Mon, 10 Dec 2012 10:41:37 +0000 (11:41 +0100)
committerTobias Brunner <tobias@strongswan.org>
Mon, 10 Dec 2012 10:41:37 +0000 (11:41 +0100)
Otherwise our custom printf specifiers won't work.

src/dumm/ext/dumm.c

index cca9a0d..603fac0 100644 (file)
@@ -30,6 +30,8 @@
 #undef PACKAGE_STRING
 #undef PACKAGE_BUGREPORT
 #undef PACKAGE_URL
+/* avoid redefintiion of snprintf etc. */
+#define RUBY_DONT_SUBST
 #include <ruby.h>
 
 static dumm_t *dumm;