summaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2013-12-04 18:14:31 -0600
committerNicolas Williams <nico@cryptonector.com>2013-12-04 18:21:42 -0600
commit54635000c5a9660affd7a08c9d72d3c350ecb241 (patch)
tree4869c002b1bf4c526706d5e96dbf26bbcea966e2 /compile.c
parent426edff09c0b77866d209ccfc34eb879982aed64 (diff)
Conditionally #define _GNU_SOURCE in compile.c
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 248d363e..f634284f 100644
--- a/compile.c
+++ b/compile.c
@@ -1,4 +1,6 @@
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE // for strdup
+#endif
#include <assert.h>
#include <string.h>
#include <stdlib.h>