aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-strcasestr.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-05 16:03:03 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-05 16:03:03 +0000
commit7947121bff38c49956b9b53c785c25f4d109bd26 (patch)
tree93c6a5cd790375056a3e0a00e411dd83df4f7080 /test-strcasestr.c
parent0e27d756b3f5d462596f672962648c6386d92c69 (diff)
downloadmandoc-7947121bff38c49956b9b53c785c25f4d109bd26.tar.gz
mandoc-7947121bff38c49956b9b53c785c25f4d109bd26.tar.zst
mandoc-7947121bff38c49956b9b53c785c25f4d109bd26.zip
strcasestr() wants _GNU_SOURCE on Linux
Diffstat (limited to 'test-strcasestr.c')
-rw-r--r--test-strcasestr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/test-strcasestr.c b/test-strcasestr.c
index 2ffb420b..479ba913 100644
--- a/test-strcasestr.c
+++ b/test-strcasestr.c
@@ -1,3 +1,7 @@
+#if defined(__linux__) || defined(__MINT__)
+# define _GNU_SOURCE /* strcasestr() */
+#endif
+
#include <string.h>
int