svn commit: r246803 - head/include

Niclas Zeising zeising at FreeBSD.org
Thu Feb 14 19:26:59 UTC 2013


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;


More information about the svn-src-all mailing list