summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2017-01-08 22:21:03 -0800
committerDave Beckett <dave@dajobe.org>2017-01-08 22:21:03 -0800
commit46d963c9de4d370e8b2592c51104b3cfe8b1d744 (patch)
tree946c4b83f5d91b1f78127e538d5a7a92bc6bb545
parentcd184bbbf5a291bee64c8183a2c06fdefbbbcd0c (diff)
downloadraptor-46d963c9de4d370e8b2592c51104b3cfe8b1d744.tar.gz
Define _GNU_SOURCE it not already set
-rw-r--r--src/snprintf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/snprintf.c b/src/snprintf.c
index de8ecbf8..0106c450 100644
--- a/src/snprintf.c
+++ b/src/snprintf.c
@@ -12,8 +12,10 @@
#endif
#ifdef HAVE_VASPRINTF
+#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* to get vasprintf() available */
#endif
+#endif
#include <stdio.h>
#include <string.h>
#include <ctype.h>