diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2021-09-26 12:01:18 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2021-09-26 12:01:18 +0000 |
commit | fab0e6655eccc5ecdb4beb26f951fa44414e3eb6 (patch) | |
tree | 0f53bf44ae6d4017b782e8963252d6fafecbdf98 /patch-for-solaris | |
parent | 4cf4c1d7d4494e5e612840a4b91c33c3a5ed65c3 (diff) | |
download | dnsfunnel-fab0e6655eccc5ecdb4beb26f951fa44414e3eb6.tar.gz dnsfunnel-fab0e6655eccc5ecdb4beb26f951fa44414e3eb6.tar.xz dnsfunnel-fab0e6655eccc5ecdb4beb26f951fa44414e3eb6.zip |
Add patch-for-solaris
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'patch-for-solaris')
-rwxr-xr-x | patch-for-solaris | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/patch-for-solaris b/patch-for-solaris new file mode 100755 index 0000000..2d1296b --- /dev/null +++ b/patch-for-solaris @@ -0,0 +1,21 @@ +#!/usr/xpg4/bin/sh + +patchit () { + echo '#!/usr/xpg4/bin/sh' > $1.tmp + tail -n +2 $1 >> $1.tmp + mv -f $1.tmp $1 + chmod 755 $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 + +echo 'SHELL := /usr/xpg4/bin/sh' > Makefile.tmp +echo >> Makefile.tmp +cat Makefile >> Makefile.tmp +mv -f Makefile.tmp Makefile |