aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-vasprintf.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-15 02:15:52 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-15 02:15:52 +0000
commit72b08051834f48e51407e7cebe8719cc5b6555a3 (patch)
treee68b559eae1648423af5c990f0c5ed0467ac2880 /test-vasprintf.c
parent239614951577ba74078ca14afdba3508fb622fcb (diff)
downloadmandoc-72b08051834f48e51407e7cebe8719cc5b6555a3.tar.gz
mandoc-72b08051834f48e51407e7cebe8719cc5b6555a3.tar.zst
mandoc-72b08051834f48e51407e7cebe8719cc5b6555a3.zip
Autodetect whether _GNU_SOURCE or _OPENBSD_SOURCE are needed; the
latter is a NetBSD idiosyncrasy reported by wiz@. Also take into account that NetBSD declares getsubopt(3) in the wrong header.
Diffstat (limited to 'test-vasprintf.c')
-rw-r--r--test-vasprintf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/test-vasprintf.c b/test-vasprintf.c
index ee6980a2..1e762697 100644
--- a/test-vasprintf.c
+++ b/test-vasprintf.c
@@ -1,4 +1,4 @@
-/* $Id: test-vasprintf.c,v 1.4 2016/07/18 18:35:05 schwarze Exp $ */
+/* $Id: test-vasprintf.c,v 1.5 2018/08/15 02:15:52 schwarze Exp $ */
/*
* Copyright (c) 2015 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -15,10 +15,6 @@
* 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>