Fix the build on FreeBSD.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35122 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
David Chisnall 2012-04-29 16:47:01 +00:00
parent f224e6286b
commit 6414d0ebeb

View file

@ -15,6 +15,9 @@
*
* Minimum of 600 for string.h so we get the POSIX strerror_r() behavior
*/
/* This hack work around for glibc breaks FreeBSD and probably other platforms.
*/
#ifndef __FreeBSD__
#if defined(_XOPEN_SOURCE)
#if _XOPEN_SOURCE < 600
#undef _XOPEN_SOURCE
@ -23,6 +26,7 @@
#else
#define _XOPEN_SOURCE 600
#endif
#endif
#import "config.h"