mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
define _XOPEN_SOURCE to 600 throughout
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33984 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fbdcab1d55
commit
37f6b7aac6
4 changed files with 5 additions and 11 deletions
|
@ -22,7 +22,8 @@
|
|||
* Source/GSNetwork.h:
|
||||
* Source/GSFileHandle.m:
|
||||
* Source/NSLock.m:
|
||||
Fix for thread-safe errno on solaris.
|
||||
* Source/Makefile.preamble:
|
||||
Fix for thread-safe errno on solaris ... define _XOPEN_SOURCE to 600
|
||||
|
||||
2011-10-12 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
|
|
|
@ -23,14 +23,8 @@
|
|||
|
||||
*/
|
||||
|
||||
/* We must define _XOPEN_SOURCE to 600 in order to get the standard
|
||||
* version of strerror_r when using glibc. Otherwise glibc will give
|
||||
* us a version which may not populate the buffer.
|
||||
*/
|
||||
#define _XOPEN_SOURCE 600
|
||||
#include <string.h>
|
||||
|
||||
|
||||
#import "common.h"
|
||||
#import "Foundation/NSDictionary.h"
|
||||
#import "Foundation/NSError.h"
|
||||
|
|
|
@ -24,9 +24,6 @@
|
|||
#ifndef _GSPrivate_h_
|
||||
#define _GSPrivate_h_
|
||||
|
||||
/* Generally may need this for posix thread-safe errno
|
||||
*/
|
||||
#define _XOPEN_SOURCE 600
|
||||
#include <errno.h>
|
||||
|
||||
#import "Foundation/NSError.h"
|
||||
|
|
|
@ -39,7 +39,9 @@
|
|||
#
|
||||
|
||||
# Additional flags to pass to the preprocessor
|
||||
ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) $(WARN_FLAGS) \
|
||||
ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) \
|
||||
-D_XOPEN_SOURCE=600 \
|
||||
$(WARN_FLAGS) \
|
||||
-Wcast-align \
|
||||
#-Wstrict-prototypes \
|
||||
#-Wpointer-arith \
|
||||
|
|
Loading…
Reference in a new issue