Unbreak build of several regression tests on Solaris 12 with gcc 5.3

We need to move _XOPEN_SOURCE from 500 to 600 which
comes with '-std=c99'.
n-i-bz


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15821
This commit is contained in:
Ivo Raisr
2016-03-04 20:49:35 +00:00
parent 728e88fa2c
commit 6da8549607
2 changed files with 3 additions and 3 deletions

View File

@@ -439,7 +439,7 @@ err_disable3_LDADD = -lpthread
err_disable4_LDADD = -lpthread
err_disable4_CFLAGS = $(AM_CFLAGS)
if VGCONF_OS_IS_SOLARIS
err_disable4_CFLAGS += -D_XOPEN_SOURCE=500
err_disable4_CFLAGS += -std=c99 -D_XOPEN_SOURCE=600
endif
reach_thread_register_CFLAGS = $(AM_CFLAGS) -O2
reach_thread_register_LDADD = -lpthread
@@ -503,7 +503,7 @@ resvn_stack_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
sendmsg_CFLAGS = $(AM_CFLAGS)
if VGCONF_OS_IS_SOLARIS
sendmsg_CFLAGS += -D_XOPEN_SOURCE=500
sendmsg_CFLAGS += -std=c99 -D_XOPEN_SOURCE=600
sendmsg_LDADD = -lsocket -lnsl
endif

View File

@@ -267,7 +267,7 @@ ansi_CFLAGS = $(AM_CFLAGS) -ansi
execve_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
if VGCONF_OS_IS_SOLARIS
fcntl_setown_LDADD = -lsocket -lnsl
fdleak_cmsg_CFLAGS = $(AM_CFLAGS) -D_XOPEN_SOURCE=500
fdleak_cmsg_CFLAGS = $(AM_CFLAGS) -std=c99 -D_XOPEN_SOURCE=600
fdleak_cmsg_LDADD = -lsocket -lnsl
fdleak_ipv4_LDADD = -lsocket -lnsl
fdleak_creat_LDADD = -lsocket -lnsl