tsocks: Add package (#1550)
[termux-packages] / packages / tsocks / configure.patch
1 diff --git a/configure b/configure
2 index 78e120d..7de513b 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 @@ -2228,7 +2228,8 @@ EOF
20 echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6
21 echo "configure:2230: checking for correct poll prototype" >&5
22 PROTO=
23 -for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout'
24 +# https://sourceforge.net/p/tsocks/support-requests/6/
25 +for testproto in 'struct pollfd *ufds, nfds_t nfds, int timeout'
26 do
27 if test "${PROTO}" = ""; then
28 cat > conftest.$ac_ext <<EOF