tsocks/tsocks.patch

Sun, 24 Aug 2014 13:48:12 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 24 Aug 2014 13:48:12 +0200
changeset 793
07d23947ec91
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

     1 Index: Makefile.in
     2 --- Makefile.in.orig	2002-03-16 11:12:40.000000000 +0100
     3 +++ Makefile.in	2005-10-03 12:41:14.784073276 +0200
     4 @@ -47,7 +47,7 @@
     5  	${SHCC} ${CFLAGS} ${INCLUDES} -o ${INSPECT} ${INSPECT}.c ${COMMON}.o ${LIBS} 
     7  ${SAVE}: ${SAVE}.c
     8 -	${SHCC} ${CFLAGS} ${INCLUDES} -static -o ${SAVE} ${SAVE}.c
     9 +	${SHCC} ${CFLAGS} ${INCLUDES} -o ${SAVE} ${SAVE}.c
    11  ${SHLIB}: ${OBJS} ${COMMON}.o ${PARSER}.o
    12  	${SHCC} ${CFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS}
    13 Index: configure
    14 --- configure.orig	2002-07-16 00:51:08.000000000 +0200
    15 +++ configure	2005-10-03 12:39:39.531996286 +0200
    16 @@ -2151,6 +2151,7 @@
    17  #line 2152 "configure"
    18  #include "confdefs.h"
    20 +      #include <sys/types.h>
    21        #include <sys/socket.h>
    22        int connect($testproto);
    24 @@ -2227,14 +2228,17 @@
    26  echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6
    27  echo "configure:2230: checking for correct poll prototype" >&5
    28 -PROTO=
    29 -for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' 
    30 +PROTO1="struct pollfd ufds[], nfds_t nfds, int timeout"
    31 +PROTO2="struct pollfd *ufds, unsigned int nfds, int timeout"
    32 +PROTO3="struct pollfd *ufds, nfds_t nfds, int timeout"
    33 +for PROTO in "$PROTO1" "$PROTO2" "$PROTO3"
    34  do
    35    if test "${PROTO}" = ""; then
    36      cat > conftest.$ac_ext <<EOF
    37  #line 2236 "configure"
    38  #include "confdefs.h"
    40 +      #include <sys/types.h>
    41        #include <sys/poll.h>
    42        int poll($testproto);
    44 Index: parser.c
    45 --- parser.c.orig	2002-03-13 13:34:22.000000000 +0100
    46 +++ parser.c	2005-10-03 12:39:39.532768730 +0200
    47 @@ -4,6 +4,7 @@
    49  */
    51 +#include <sys/types.h>
    52  #include <netinet/in.h>
    53  #include <sys/socket.h>
    54  #include <arpa/inet.h>

mercurial