X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/7ca732f0714b3bdace7b2642923a7a0f4919e2d2..176aca8c8f9439aae3967058b8bf17b07d19a645:/test-vasprintf.c

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>