chiark / gitweb /
debianutils: Update from 4.8.3 to 4.8.4
[termux-packages] / packages / tsocks / configure.patch
1 diff --git a/configure b/configure
2 index 78e120d..80e5418 100755
3 --- a/configure
4 +++ b/configure
5 @@ -53,11 +53,11 @@ datadir='${prefix}/share'
6  sysconfdir='${prefix}/etc'
7  sharedstatedir='${prefix}/com'
8  localstatedir='${prefix}/var'
9 -libdir='${exec_prefix}/lib'
10 +libdir='${prefix}/lib'
11  includedir='${prefix}/include'
12  oldincludedir='/usr/include'
13  infodir='${prefix}/info'
14 -mandir='${prefix}/man'
15 +mandir='${prefix}/share/man'
16  
17  # Initialize some other variables.
18  subdirs=
19 @@ -2137,7 +2137,7 @@ EOF
20  echo $ac_n "checking for correct connect prototype""... $ac_c" 1>&6
21  echo "configure:2139: checking for correct connect prototype" >&5
22  PROTO=
23 -PROTO1='int __fd, const struct sockaddr * __addr, int len'
24 +PROTO1='int __fd, const struct sockaddr * __addr, int __len'
25  PROTO2='int __fd, const struct sockaddr_in * __addr, socklen_t __len'
26  PROTO3='int __fd, struct sockaddr * __addr, int __len'
27  PROTO4='int __fd, const struct sockaddr * __addr, socklen_t __len'
28 @@ -2228,7 +2228,8 @@ EOF
29  echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6
30  echo "configure:2230: checking for correct poll prototype" >&5
31  PROTO=
32 -for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout' 
33 +# https://sourceforge.net/p/tsocks/support-requests/6/
34 +for testproto in 'struct pollfd *ufds, nfds_t nfds, int timeout'
35  do
36    if test "${PROTO}" = ""; then
37      cat > conftest.$ac_ext <<EOF