mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
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:
parent
f4e2de3057
commit
9a2143b32b
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,9 @@
|
||||||
*
|
*
|
||||||
* Minimum of 600 for string.h so we get the POSIX strerror_r() behavior
|
* 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 defined(_XOPEN_SOURCE)
|
||||||
#if _XOPEN_SOURCE < 600
|
#if _XOPEN_SOURCE < 600
|
||||||
#undef _XOPEN_SOURCE
|
#undef _XOPEN_SOURCE
|
||||||
|
@ -23,6 +26,7 @@
|
||||||
#else
|
#else
|
||||||
#define _XOPEN_SOURCE 600
|
#define _XOPEN_SOURCE 600
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#import "config.h"
|
#import "config.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue