From 4e95969e0629b90eea5f975d3e0e0881ef69762c Mon Sep 17 00:00:00 2001 From: Niclas Zeising Date: Thu, 14 Feb 2013 19:26:58 +0000 Subject: FreeBSD uses #if __BSD_VISIBLE to hide non-standard functions, fix this. Noticed by: kib Approved by: kib --- include/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/string.h') 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; -- cgit v1.2.3