From c91725d3a4f497b8bd6c7ae1f214b5008206c0fa Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 30 Jan 2015 16:12:42 -0600 Subject: [PATCH] Linux flag changes to remove glibc 2.20 warnings Replace _BSD_SOURCE and other flags with _GNU_SOURCE and _DEFAULT_SOURCE --- configure/os/CONFIG.Common.linuxCommon | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/configure/os/CONFIG.Common.linuxCommon b/configure/os/CONFIG.Common.linuxCommon index 4f91583d7..faee4a7b2 100644 --- a/configure/os/CONFIG.Common.linuxCommon +++ b/configure/os/CONFIG.Common.linuxCommon @@ -12,13 +12,10 @@ include $(CONFIG)/os/CONFIG.Common.UnixCommon OS_CLASS = Linux -CODE_CPPFLAGS = -D_REENTRANT - -POSIX_CPPFLAGS = -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 +# Define _GNU_SOURCE and _DEFAULT_SOURCE for maximum portability +POSIX_CPPFLAGS = -D_GNU_SOURCE -D_DEFAULT_SOURCE POSIX_LDLIBS = -lpthread -# -D_BSD_SOURCE for gethostname() in unistd.h as needed by cacChannelIO.cpp. -OP_SYS_CPPFLAGS += -D_BSD_SOURCE OP_SYS_CPPFLAGS += -Dlinux OP_SYS_LDLIBS += -lrt -ldl