summaryrefslogtreecommitdiff
path: root/include/string.h
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@FreeBSD.org>2013-02-14 19:26:58 +0000
committerNiclas Zeising <zeising@FreeBSD.org>2013-02-14 19:26:58 +0000
commit4e95969e0629b90eea5f975d3e0e0881ef69762c (patch)
tree515acae82320ebc09b22609cb1cdb2be8577340e /include/string.h
parentbf94adb3e102749108abd5cf6923f9f4f97be8ee (diff)
downloadsrc-test2-4e95969e0629b90eea5f975d3e0e0881ef69762c.tar.gz
src-test2-4e95969e0629b90eea5f975d3e0e0881ef69762c.zip
FreeBSD uses #if __BSD_VISIBLE to hide non-standard functions, fix this.
Noticed by: kib Approved by: kib
Notes
Notes: svn path=/head/; revision=246803
Diffstat (limited to 'include/string.h')
-rw-r--r--include/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h
index dc18a75161d7..ceffcf6aeaac 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;