summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeising <zeising@FreeBSD.org>2013-02-14 19:26:58 +0000
committerzeising <zeising@FreeBSD.org>2013-02-14 19:26:58 +0000
commitca4c3f9c587c9b313d48c94e5acc4f321ce3cfd3 (patch)
tree515acae82320ebc09b22609cb1cdb2be8577340e
parent8d503a3c600526f439702dd1f58becc795b17f44 (diff)
downloadFreeBSD-src-ca4c3f9c587c9b313d48c94e5acc4f321ce3cfd3.zip
FreeBSD-src-ca4c3f9c587c9b313d48c94e5acc4f321ce3cfd3.tar.gz
FreeBSD uses #if __BSD_VISIBLE to hide non-standard functions, fix this.
Noticed by: kib Approved by: kib
-rw-r--r--include/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h
index dc18a75..ceffcf6 100644
--- a/include/string.h
+++ b/include/string.h
@@ -74,7 +74,7 @@ char *strcasestr(const char *, const char *) __pure;
#endif
char *strcat(char * __restrict, const char * __restrict);
char *strchr(const char *, int) __pure;
-#if defined(_GNU_SOURCE)
+#if __BSD_VISIBLE
char *strchrnul(const char*, int) __pure;
#endif
int strcmp(const char *, const char *) __pure;
OpenPOWER on IntegriCloud