diff options
author | jlam <jlam> | 2001-03-13 21:34:02 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-03-13 21:34:02 +0000 |
commit | cd5c6b45b7c43b7408044766c5cdb15e1a865b6d (patch) | |
tree | f8b5c63e1a9e1a0ae815c8bcc5c9f5a91991511f /www/php4/patches | |
parent | 74a01edeb4e2750805c19490a1439037aba48b79 (diff) | |
download | pkgsrc-cd5c6b45b7c43b7408044766c5cdb15e1a865b6d.tar.gz |
Include <sys/types.h> before including <sys/socket.h> in thest for IPv6
support. Fix suggested in pkg/12199 by Olaf Seibert
<rhialto@polderland.nl>.
Diffstat (limited to 'www/php4/patches')
-rw-r--r-- | www/php4/patches/patch-aa | 16 | ||||
-rw-r--r-- | www/php4/patches/patch-ab | 16 |
2 files changed, 25 insertions, 7 deletions
diff --git a/www/php4/patches/patch-aa b/www/php4/patches/patch-aa index 7feb7e0330d..e4981103204 100644 --- a/www/php4/patches/patch-aa +++ b/www/php4/patches/patch-aa @@ -1,8 +1,18 @@ -$NetBSD: patch-aa,v 1.4 2000/12/25 21:03:47 jlam Exp $ +$NetBSD: patch-aa,v 1.5 2001/03/13 21:34:03 jlam Exp $ ---- configure.in.orig Mon Dec 18 23:32:10 2000 +--- configure.in.orig Thu Jan 11 13:18:18 2001 +++ configure.in -@@ -837,10 +837,6 @@ +@@ -340,7 +340,8 @@ + + dnl Check for IPv6 support + AC_CACHE_CHECK([for IPv6 support], ac_cv_ipv6_support, +-[AC_TRY_COMPILE([#include <sys/socket.h> ++[AC_TRY_COMPILE([#include <sys/types.h> ++#include <sys/socket.h> + #include <netinet/in.h>], [struct sockaddr_in6 s; int i=AF_INET6; s], + ac_cv_ipv6_support=yes, ac_cv_ipv6_support=no)]) + if test "$ac_cv_ipv6_support" = yes; then +@@ -837,10 +838,6 @@ PHP_CONFIGURE_PART(Configuring shared libtool) $SHELL $srcdir/ltconfig --output=shlibtool --disable-static --srcdir=$srcdir --cache-file=./config.cache $srcdir/ltmain.sh SHARED_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool' diff --git a/www/php4/patches/patch-ab b/www/php4/patches/patch-ab index 92e1433a93a..6e613cc0764 100644 --- a/www/php4/patches/patch-ab +++ b/www/php4/patches/patch-ab @@ -1,8 +1,16 @@ -$NetBSD: patch-ab,v 1.4 2001/02/12 04:14:28 jlam Exp $ +$NetBSD: patch-ab,v 1.5 2001/03/13 21:34:03 jlam Exp $ --- configure.orig Thu Jan 11 13:39:29 2001 +++ configure -@@ -40176,6 +40176,7 @@ +@@ -6336,6 +6336,7 @@ + cat > conftest.$ac_ext <<EOF + #line 6338 "configure" + #include "confdefs.h" ++#include <sys/types.h> + #include <sys/socket.h> + #include <netinet/in.h> + int main() { +@@ -40176,6 +40177,7 @@ fi @@ -10,7 +18,7 @@ $NetBSD: patch-ab,v 1.4 2001/02/12 04:14:28 jlam Exp $ echo $ac_n "checking for pam_start in -lpam""... $ac_c" 1>&6 echo "configure:40181: checking for pam_start in -lpam" >&5 ac_lib_var=`echo pam'_'pam_start | sed 'y%./+-%__p_%'` -@@ -40220,6 +40221,8 @@ +@@ -40220,6 +40222,8 @@ else echo "$ac_t""no" 1>&6 fi @@ -19,7 +27,7 @@ $NetBSD: patch-ab,v 1.4 2001/02/12 04:14:28 jlam Exp $ for ac_func in getcwd getwd -@@ -47325,9 +47328,6 @@ +@@ -47325,9 +47329,6 @@ $SHELL $srcdir/ltconfig --output=shlibtool --disable-static --srcdir=$srcdir --cache-file=./config.cache $srcdir/ltmain.sh SHARED_LIBTOOL='$(SHELL) $(top_builddir)/shlibtool' |