diff options
-rw-r--r-- | config.h.pre | 2 | ||||
-rw-r--r-- | test-strcasestr.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/config.h.pre b/config.h.pre index 52a8159a..1c3940de 100644 --- a/config.h.pre +++ b/config.h.pre @@ -2,7 +2,7 @@ #define MANDOC_CONFIG_H #if defined(__linux__) || defined(__MINT__) -# define _GNU_SOURCE /* strptime(), getsubopt() */ +# define _GNU_SOURCE /* getsubopt(), strcasestr(), strptime() */ #endif #include <sys/types.h> 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 |