]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Unbreak build of several regression tests on Solaris 12 with gcc 5.3
authorIvo Raisr <ivosh@ivosh.net>
Fri, 4 Mar 2016 20:49:35 +0000 (20:49 +0000)
committerIvo Raisr <ivosh@ivosh.net>
Fri, 4 Mar 2016 20:49:35 +0000 (20:49 +0000)
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

memcheck/tests/Makefile.am
none/tests/Makefile.am

index 6459b20a13acd7d9130aa5d7a10846d066c4d34e..368239fb711bff55d2870d0e2397818f7dc140fb 100644 (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
 
index a4204d5120473401fc3843d810071ad9a7f597c1..7eb2bf855cdc4ea403e30646a3b5e210e054ec75 100644 (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