Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2013 19:26:59 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r246803 - head/include
Message-ID:  <201302141926.r1EJQx28031068@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising (doc,ports committer)
Date: Thu Feb 14 19:26:58 2013
New Revision: 246803
URL: http://svnweb.freebsd.org/changeset/base/246803

Log:
  FreeBSD uses #if __BSD_VISIBLE to hide non-standard functions, fix this.
  
  Noticed by:	kib
  Approved by:	kib

Modified:
  head/include/string.h

Modified: head/include/string.h
==============================================================================
--- head/include/string.h	Thu Feb 14 19:22:15 2013	(r246802)
+++ head/include/string.h	Thu Feb 14 19:26:58 2013	(r246803)
@@ -74,7 +74,7 @@ char	*strcasestr(const char *, const cha
 #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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302141926.r1EJQx28031068>