diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-16 02:27:32 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2014-12-16 02:27:32 +0000 |
commit | 2eada050baaf166768da4b6f92cc846c1e3f26f2 (patch) | |
tree | dd307f283de40b21f823b680af2501c51a213c9c | |
parent | 93887948ee368363c137d3e27be1882ff80c06c1 (diff) | |
download | skalibs-2eada050baaf166768da4b6f92cc846c1e3f26f2.tar.xz |
Test _XOPEN_SOURCE=700, you never know... (but not for Solaris)
-rwxr-xr-x | configure | 2 | ||||
-rwxr-xr-x | patch-for-solaris | 6 |
2 files changed, 6 insertions, 2 deletions
@@ -164,7 +164,7 @@ trytypesize() { CC_AUTO="$CC" CFLAGS_AUTO="$CFLAGS" -CPPFLAGS_AUTO="-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=600 -O2 $CPPFLAGS" +CPPFLAGS_AUTO="-D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -O2 $CPPFLAGS" LDFLAGS_AUTO="$LDFLAGS" LDFLAGS_NOSHARED= prefix= diff --git a/patch-for-solaris b/patch-for-solaris index 02f2e3c..fbefc32 100755 --- a/patch-for-solaris +++ b/patch-for-solaris @@ -4,9 +4,13 @@ patchit () { echo '#!/usr/xpg4/bin/sh' > $1.tmp tail -n +2 $1 >> $1.tmp mv -f $1.tmp $1 - chmod 755 $1 + chmod 0755 $1 } +# Solaris doesn't understand POSIX.1-2008 either. +sed -e 's/XOPEN_SOURCE=700/XOPEN_SOURCE=600/' < configure > configure.tmp +mv -f configure.tmp configure + patchit ./configure patchit ./tools/install.sh patchit ./tools/gen-deps.sh |