mirror of
https://git.freebsd.org/ports.git
synced 2025-07-11 22:39:16 -04:00
Allow non SOCKS aware applications to use SOCKS without modification. PR: ports/56534 Submitted by: YazzY <yazzy@yazzy.org>
38 lines
1.1 KiB
Text
38 lines
1.1 KiB
Text
--- configure.orig Sat Sep 6 00:45:57 2003
|
|
+++ configure Sat Sep 6 00:46:07 2003
|
|
@@ -1836,14 +1836,14 @@
|
|
SIMPLELIBS=${LIBS}
|
|
LIBS=
|
|
|
|
-echo $ac_n "checking for dlsym in -ldl""... $ac_c" 1>&6
|
|
-echo "configure:1841: checking for dlsym in -ldl" >&5
|
|
+echo $ac_n "checking for dlsym in -lc""... $ac_c" 1>&6
|
|
+echo "configure:1841: checking for dlsym in -lc" >&5
|
|
ac_lib_var=`echo dl'_'dlsym | sed 'y%./+-%__p_%'`
|
|
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
|
|
echo $ac_n "(cached) $ac_c" 1>&6
|
|
else
|
|
ac_save_LIBS="$LIBS"
|
|
-LIBS="-ldl $LIBS"
|
|
+LIBS="-lc $LIBS"
|
|
cat > conftest.$ac_ext <<EOF
|
|
#line 1849 "configure"
|
|
#include "confdefs.h"
|
|
@@ -1877,7 +1877,7 @@
|
|
#define $ac_tr_lib 1
|
|
EOF
|
|
|
|
- LIBS="-ldl $LIBS"
|
|
+ LIBS="-lc $LIBS"
|
|
|
|
else
|
|
echo "$ac_t""no" 1>&6
|
|
@@ -2228,7 +2228,7 @@
|
|
echo $ac_n "checking for correct poll prototype""... $ac_c" 1>&6
|
|
echo "configure:2230: checking for correct poll prototype" >&5
|
|
PROTO=
|
|
-for testproto in 'struct pollfd *ufds, unsigned long nfds, int timeout'
|
|
+for testproto in 'struct pollfd fds[], nfds_t nfds, int timeout'
|
|
do
|
|
if test "${PROTO}" = ""; then
|
|
cat > conftest.$ac_ext <<EOF
|