Skip to content

Commit

Permalink
Use _POSIX_C_SOURCE=199506L
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33998 72102866-910b-0410-8b05-ffd578937521
  • Loading branch information
rfm committed Oct 15, 2011
1 parent ef9bb62 commit 2f9fdd2
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
2011-10-15 Richard Frith-Macdonald <[email protected]>

* Source/unix/Makefile.preamble:
* Source/win32/Makefile.preamble:
* Source/ObjectiveC2/Makefile.preamble:
* Source/Additions/Makefile.preamble:
* Source/Makefile.preamble:
* config.mak.in:
It seems various BSD operating systems have bugs in their _XOPEN_SOURCE
implementation, so we can't generally use it. Try _POSIX_C_SOURCE
instead.

2011-10-14 Richard Frith-Macdonald <[email protected]>

* Source/unix/Makefile.preamble:
Expand Down
2 changes: 1 addition & 1 deletion SSL/Makefile.preamble
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#

# Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) $(WARN_FLAGS)
ADDITIONAL_CPPFLAGS = $(DEFS) $(WARN_FLAGS)

# Additional flags to pass to the Objective-C compiler
ADDITIONAL_OBJCFLAGS = $(SSLFLAGS)
Expand Down
4 changes: 2 additions & 2 deletions Source/Additions/Makefile.preamble
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@

# Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) \
-D_XOPEN_SOURCE=600 -D_REENTRANT\
$(WARN_FLAGS) -DNO_GNUSTEP=1
$(WARN_FLAGS) \
-DNO_GNUSTEP=1

# Additional flags to pass to the Objective-C compiler
#ADDITIONAL_OBJCFLAGS =
Expand Down
2 changes: 1 addition & 1 deletion Source/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ else
libgnustep-base_SUBPROJECTS += unix
endif

DEFS= -DGNUSTEP_TARGET_DIR=\"$(GNUSTEP_TARGET_DIR)\" \
DEFS+= -DGNUSTEP_TARGET_DIR=\"$(GNUSTEP_TARGET_DIR)\" \
-DGNUSTEP_TARGET_CPU=\"$(GNUSTEP_TARGET_CPU)\" \
-DGNUSTEP_TARGET_OS=\"$(GNUSTEP_TARGET_OS)\" \
-DGNUSTEP_IS_FLATTENED=\"$(GNUSTEP_IS_FLATTENED)\" \
Expand Down
3 changes: 1 addition & 2 deletions Source/Makefile.preamble
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
#

# Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) $(CONFIG_SYSTEM_DEFS) \
-D_XOPEN_SOURCE=600 -D_REENTRANT\
ADDITIONAL_CPPFLAGS = $(DEFS) \
$(WARN_FLAGS) \
-Wcast-align \
#-Wstrict-prototypes \
Expand Down
1 change: 0 additions & 1 deletion Source/ObjectiveC2/Makefile.preamble
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

# Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) \
-D_XOPEN_SOURCE=600 -D_REENTRANT\
$(WARN_FLAGS)

# Additional flags to pass to the Objective-C compiler
Expand Down
1 change: 0 additions & 1 deletion Source/unix/Makefile.preamble
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

# Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) \
-D_XOPEN_SOURCE=600 -D_REENTRANT\
$(WARN_FLAGS)

# Additional flags to pass to the Objective-C compiler
Expand Down
1 change: 0 additions & 1 deletion Source/win32/Makefile.preamble
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@

# Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS = $(DEFS) \
-D_XOPEN_SOURCE=600 -D_REENTRANT\
$(WARN_FLAGS)

# Additional flags to pass to the Objective-C compiler
Expand Down
2 changes: 1 addition & 1 deletion Tools/Makefile.preamble
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#

# Additional flags to pass to the preprocessor
ADDITIONAL_CPPFLAGS += $(WARN_FLAGS)
ADDITIONAL_CPPFLAGS += $(DEFS) $(WARN_FLAGS)
ifneq ($(GNUSTEP_GDOMAP_PORT_OVERRIDE),no)
ADDITIONAL_CPPFLAGS += -DGDOMAP_PORT_OVERRIDE=$(GNUSTEP_GDOMAP_PORT_OVERRIDE)
endif
Expand Down
2 changes: 2 additions & 0 deletions config.mak.in
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ endif
GNUSTEP_BASE_DOMAIN=@GNUSTEP_BASE_DOMAIN@
GNUSTEP_BASE_RELATIVE_PATHS=@GNUSTEP_BASE_RELATIVE_PATHS@

DEFS=-D_POSIX_C_SOURCE=199506L

ifeq ($(GNUSTEP_BASE_RELATIVE_PATHS), yes)
ifneq ($(GNUSTEP_BASE_DOMAIN), $(GNUSTEP_INSTALLATION_DOMAIN))
$(warning "Error: GNUSTEP_INSTALLATION_DOMAIN does not match GNUSTEP_BASE_DOMAIN")
Expand Down

0 comments on commit 2f9fdd2

Please sign in to comment.