summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2003-10-08 08:44:54 +0000
committeredwin <edwin@FreeBSD.org>2003-10-08 08:44:54 +0000
commit9cf77d560c241ec58e993976ff8cd331872ba284 (patch)
tree0e3a77685573481caac8e5ed9cf36d93a58d137f /net
parent17de1b2bd913505f687bc3688d91999765b15cc5 (diff)
downloadFreeBSD-ports-9cf77d560c241ec58e993976ff8cd331872ba284.zip
FreeBSD-ports-9cf77d560c241ec58e993976ff8cd331872ba284.tar.gz
Make port buildable on -STABLE
Diffstat (limited to 'net')
-rw-r--r--net/tsocks/files/patch-configure28
-rw-r--r--net/tsocks/files/patch-parser.c10
2 files changed, 33 insertions, 5 deletions
diff --git a/net/tsocks/files/patch-configure b/net/tsocks/files/patch-configure
index f0c0d10..275f2c3 100644
--- a/net/tsocks/files/patch-configure
+++ b/net/tsocks/files/patch-configure
@@ -1,5 +1,5 @@
---- configure.orig Sat Sep 6 00:45:57 2003
-+++ configure Sat Sep 6 00:46:07 2003
+--- configure.orig Mon Jul 15 15:51:08 2002
++++ configure Wed Oct 8 01:42:17 2003
@@ -1836,14 +1836,14 @@
SIMPLELIBS=${LIBS}
LIBS=
@@ -27,12 +27,30 @@
else
echo "$ac_t""no" 1>&6
-@@ -2228,7 +2228,7 @@
+@@ -2151,6 +2151,7 @@
+ #line 2152 "configure"
+ #include "confdefs.h"
+
++ #include <sys/types.h>
+ #include <sys/socket.h>
+ int connect($testproto);
+
+@@ -2227,14 +2228,16 @@
+
echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6
echo "configure:2230: checking for correct poll prototype" >&5
- PROTO=
+-PROTO=
-for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout'
-+for testproto in 'struct pollfd fds[], nfds_t nfds, int timeout'
++PROTO1="struct pollfd fds[], nfds_t nfds, int timeout"
++PROTO2="struct pollfd *fds, unsigned int nfds, int timeout"
++for PROTO in "$PROTO1" "$PROTO2"
do
if test "${PROTO}" = ""; then
cat > conftest.$ac_ext <<EOF
+ #line 2236 "configure"
+ #include "confdefs.h"
+
++ #include <sys/types.h>
+ #include <sys/poll.h>
+ int poll($testproto);
+
diff --git a/net/tsocks/files/patch-parser.c b/net/tsocks/files/patch-parser.c
new file mode 100644
index 0000000..0807761
--- /dev/null
+++ b/net/tsocks/files/patch-parser.c
@@ -0,0 +1,10 @@
+--- parser.c.orig Wed Oct 8 01:43:48 2003
++++ parser.c Wed Oct 8 01:43:58 2003
+@@ -4,6 +4,7 @@
+
+ */
+
++#include <sys/types.h>
+ #include <netinet/in.h>
+ #include <sys/socket.h>
+ #include <arpa/inet.h>
OpenPOWER on IntegriCloud