From 4572c756f31633a1b6d0cec703ec4cbbf4964f08 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Wed, 4 Dec 2002 14:27:00 +0000 Subject: [PATCH] add -D_XOPEN_SOURCE=500 --- configure/os/CONFIG.Common.hpux-parisc | 2 +- configure/os/CONFIG.Common.linux-mpc82xx | 2 +- configure/os/CONFIG.Common.linux-x86 | 2 +- configure/os/CONFIG.Common.solaris-sparc | 1 + configure/os/CONFIG.Common.solaris-x86 | 2 +- configure/os/CONFIG.Common.sun4-x86 | 2 +- configure/os/CONFIG.solaris-sparc.solaris-sparc | 2 ++ 7 files changed, 8 insertions(+), 5 deletions(-) diff --git a/configure/os/CONFIG.Common.hpux-parisc b/configure/os/CONFIG.Common.hpux-parisc index a77fdb112..8a49dda43 100644 --- a/configure/os/CONFIG.Common.hpux-parisc +++ b/configure/os/CONFIG.Common.hpux-parisc @@ -13,7 +13,7 @@ include $(CONFIG)/os/CONFIG.Common.UnixCommon OS_CLASS = hpux ARCH_CLASS = parisc -POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L +POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 POSIX_CPPFLAGS_NO = POSIX_LDLIBS_NO += # When compiling with gcc, static builds need two more libraries (*sigh*) diff --git a/configure/os/CONFIG.Common.linux-mpc82xx b/configure/os/CONFIG.Common.linux-mpc82xx index 0faa7718f..4b1015916 100644 --- a/configure/os/CONFIG.Common.linux-mpc82xx +++ b/configure/os/CONFIG.Common.linux-mpc82xx @@ -13,7 +13,7 @@ ARCH_CLASS = mpc82xx CODE_CPPFLAGS = -D_REENTRANT -POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS +POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 POSIX_CPPFLAGS_NO = POSIX_LDLIBS_YES = -lpthread POSIX_LDLIBS_NO = diff --git a/configure/os/CONFIG.Common.linux-x86 b/configure/os/CONFIG.Common.linux-x86 index 062e14d70..81bbc798c 100644 --- a/configure/os/CONFIG.Common.linux-x86 +++ b/configure/os/CONFIG.Common.linux-x86 @@ -15,7 +15,7 @@ ARCH_CLASS = x86 CODE_CPPFLAGS = -D_REENTRANT -POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS +POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 POSIX_CPPFLAGS_NO = POSIX_LDLIBS_YES = -lpthread POSIX_LDLIBS_NO = diff --git a/configure/os/CONFIG.Common.solaris-sparc b/configure/os/CONFIG.Common.solaris-sparc index ed0e7f033..b11e2566a 100644 --- a/configure/os/CONFIG.Common.solaris-sparc +++ b/configure/os/CONFIG.Common.solaris-sparc @@ -22,6 +22,7 @@ POSIX_CPPFLAGS_YES_6 += -D_REENTRANT POSIX_LDLIBS_YES_6 += -lthread POSIX_CPPFLAGS_YES += -D_POSIX_C_SOURCE=199506L $(POSIX_CPPFLAGS_YES_$(SOLARIS_VERSION)) +POSIX_CPPFLAGS_YES += -D_XOPEN_SOURCE=500 POSIX_LDLIBS_YES += -lposix4 -lpthread $(POSIX_LDLIBS_YES_$(SOLARIS_VERSION)) POSIX_CPPFLAGS_NO += diff --git a/configure/os/CONFIG.Common.solaris-x86 b/configure/os/CONFIG.Common.solaris-x86 index 2f8f24722..dc7a742b5 100644 --- a/configure/os/CONFIG.Common.solaris-x86 +++ b/configure/os/CONFIG.Common.solaris-x86 @@ -20,7 +20,7 @@ CODE_CPPFLAGS = -D__EXTENSIONS__ #POSIX_LDLIBS_YES += -lposix4 -lpthread -lthread # This set of flags is recommended by sun for posix threads and works with solaris 8 -POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L +POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 POSIX_LDLIBS_YES += -lposix4 -lpthread POSIX_CPPFLAGS_NO = diff --git a/configure/os/CONFIG.Common.sun4-x86 b/configure/os/CONFIG.Common.sun4-x86 index 1c46d5f08..75d7b80c5 100644 --- a/configure/os/CONFIG.Common.sun4-x86 +++ b/configure/os/CONFIG.Common.sun4-x86 @@ -15,7 +15,7 @@ ARCH_CLASS = x86 CODE_CPPFLAGS = -D__EXTENSIONS__ -POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L +POSIX_CPPFLAGS_YES = -D_POSIX_C_SOURCE=199506L -D_XOPEN_SOURCE=500 POSIX_LDLIBS_YES += -lpthread -lthread POSIX_CPPFLAGS_NO = POSIX_LDLIBS_NO += diff --git a/configure/os/CONFIG.solaris-sparc.solaris-sparc b/configure/os/CONFIG.solaris-sparc.solaris-sparc index ec3175ef2..c0288315b 100644 --- a/configure/os/CONFIG.solaris-sparc.solaris-sparc +++ b/configure/os/CONFIG.solaris-sparc.solaris-sparc @@ -9,6 +9,8 @@ SPARCWORKS = /opt/SUNWspro +#CC = purify $(SPARCWORKS)/bin/cc +#CCC = purify $(SPARCWORKS)/bin/CC CC = $(SPARCWORKS)/bin/cc CCC = $(SPARCWORKS)/bin/CC #CC = purify -max-threads=100 $(SPARCWORKS)/bin/cc