aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-strcasestr.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-strcasestr.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-strcasestr.c')
-rw-r--r--test-strcasestr.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/test-strcasestr.c b/test-strcasestr.c
index c3a87de8..0b1a576b 100644
--- a/test-strcasestr.c
+++ b/test-strcasestr.c
@@ -1,7 +1,3 @@
-#if defined(__linux__) || defined(__MINT__)
-# define _GNU_SOURCE /* strcasestr() */
-#endif
-
#include <string.h>
int