diff options
author | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-02-24 06:37:27 +0000 |
---|---|---|
committer | Yoshinobu Inoue <shin@FreeBSD.org> | 2000-02-24 06:37:27 +0000 |
commit | e53d640ca4cee704108d4f31f410b5aa43eb6359 (patch) | |
tree | 0e075cba8c28f79559cf3b2c9602b4be74c0d2fe /net/socks5/files/patch-an | |
parent | Separete two ports in point of LIB_DEPENDS. (diff) |
Add getaddrinfo() wrapper function support.
Tested and confirmed by: Robert Muir <rmuir@looksharp.net>,
Toshihiko Kodama <kodama@ayame.mfd.cs.fujitsu.co.jp>,
Masahide -mac- NODA <mac@clave.gr.jp>
Approved by: jkh
Reviewed by: imp
Diffstat (limited to 'net/socks5/files/patch-an')
-rw-r--r-- | net/socks5/files/patch-an | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/net/socks5/files/patch-an b/net/socks5/files/patch-an new file mode 100644 index 000000000000..3dd5f8ec5824 --- /dev/null +++ b/net/socks5/files/patch-an @@ -0,0 +1,64 @@ +--- configure Tue Aug 3 00:01:03 1999 ++++ configure.orig Sun Feb 20 21:28:20 2000 +@@ -3090,6 +3090,61 @@ + fi + done + ++for ac_func in getaddrinfo getnameinfo ++do ++echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 ++echo "configure:3182: checking for $ac_func" >&5 ++if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then ++ echo $ac_n "(cached) $ac_c" 1>&6 ++else ++ cat > conftest.$ac_ext <<EOF ++#line 3187 "configure" ++#include "confdefs.h" ++/* System header to define __stub macros and hopefully few prototypes, ++ which can conflict with char $ac_func(); below. */ ++#include <assert.h> ++/* Override any gcc2 internal prototype to avoid an error. */ ++/* We use char because int might match the return type of a gcc2 ++ builtin and then its argument prototype would still apply. */ ++char $ac_func(); ++ ++int main() { ++ ++/* The GNU C library defines this for functions which it implements ++ to always fail with ENOSYS. Some functions are actually named ++ something starting with __ and the normal name is an alias. */ ++#if defined (__stub_$ac_func) || defined (__stub___$ac_func) ++choke me ++#else ++$ac_func(); ++#endif ++ ++; return 0; } ++EOF ++if { (eval echo configure:3210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then ++ rm -rf conftest* ++ eval "ac_cv_func_$ac_func=yes" ++else ++ echo "configure: failed program was:" >&5 ++ cat conftest.$ac_ext >&5 ++ rm -rf conftest* ++ eval "ac_cv_func_$ac_func=no" ++fi ++rm -f conftest* ++fi ++ ++if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then ++ echo "$ac_t""yes" 1>&6 ++ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` ++ cat >> confdefs.h <<EOF ++#define $ac_tr_func 1 ++EOF ++ ++else ++ echo "$ac_t""no" 1>&6 ++fi ++done ++ + for ac_func in memset memcmp memmove strchr strrchr strdup strerror + do + echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 |