1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tsocks/tsocks.patch Sun Aug 24 13:48:12 2014 +0200 1.3 @@ -0,0 +1,54 @@ 1.4 +Index: Makefile.in 1.5 +--- Makefile.in.orig 2002-03-16 11:12:40.000000000 +0100 1.6 ++++ Makefile.in 2005-10-03 12:41:14.784073276 +0200 1.7 +@@ -47,7 +47,7 @@ 1.8 + ${SHCC} ${CFLAGS} ${INCLUDES} -o ${INSPECT} ${INSPECT}.c ${COMMON}.o ${LIBS} 1.9 + 1.10 + ${SAVE}: ${SAVE}.c 1.11 +- ${SHCC} ${CFLAGS} ${INCLUDES} -static -o ${SAVE} ${SAVE}.c 1.12 ++ ${SHCC} ${CFLAGS} ${INCLUDES} -o ${SAVE} ${SAVE}.c 1.13 + 1.14 + ${SHLIB}: ${OBJS} ${COMMON}.o ${PARSER}.o 1.15 + ${SHCC} ${CFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS} 1.16 +Index: configure 1.17 +--- configure.orig 2002-07-16 00:51:08.000000000 +0200 1.18 ++++ configure 2005-10-03 12:39:39.531996286 +0200 1.19 +@@ -2151,6 +2151,7 @@ 1.20 + #line 2152 "configure" 1.21 + #include "confdefs.h" 1.22 + 1.23 ++ #include <sys/types.h> 1.24 + #include <sys/socket.h> 1.25 + int connect($testproto); 1.26 + 1.27 +@@ -2227,14 +2228,17 @@ 1.28 + 1.29 + echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6 1.30 + echo "configure:2230: checking for correct poll prototype" >&5 1.31 +-PROTO= 1.32 +-for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' 1.33 ++PROTO1="struct pollfd ufds[], nfds_t nfds, int timeout" 1.34 ++PROTO2="struct pollfd *ufds, unsigned int nfds, int timeout" 1.35 ++PROTO3="struct pollfd *ufds, nfds_t nfds, int timeout" 1.36 ++for PROTO in "$PROTO1" "$PROTO2" "$PROTO3" 1.37 + do 1.38 + if test "${PROTO}" = ""; then 1.39 + cat > conftest.$ac_ext <<EOF 1.40 + #line 2236 "configure" 1.41 + #include "confdefs.h" 1.42 + 1.43 ++ #include <sys/types.h> 1.44 + #include <sys/poll.h> 1.45 + int poll($testproto); 1.46 + 1.47 +Index: parser.c 1.48 +--- parser.c.orig 2002-03-13 13:34:22.000000000 +0100 1.49 ++++ parser.c 2005-10-03 12:39:39.532768730 +0200 1.50 +@@ -4,6 +4,7 @@ 1.51 + 1.52 + */ 1.53 + 1.54 ++#include <sys/types.h> 1.55 + #include <netinet/in.h> 1.56 + #include <sys/socket.h> 1.57 + #include <arpa/inet.h>