aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--test-vasprintf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test-vasprintf.c b/test-vasprintf.c
index 9515acdf..1b2544a4 100644
--- a/test-vasprintf.c
+++ b/test-vasprintf.c
@@ -1,4 +1,4 @@
-/* $Id: test-vasprintf.c,v 1.1 2015/03/19 14:57:29 schwarze Exp $ */
+/* $Id: test-vasprintf.c,v 1.2 2015/03/20 15:32:02 schwarze Exp $ */
/*
* Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -15,6 +15,10 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#if defined(__linux__) || defined(__MINT__)
+#define _GNU_SOURCE /* vasprintf() */
+#endif
+
#include <stdarg.h>
#include <stdio.h>
#include <string.h>