From ca4c3f9c587c9b313d48c94e5acc4f321ce3cfd3 Mon Sep 17 00:00:00 2001 From: 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') 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; -- cgit v1.1