1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-17 00:00:40 +00:00
freebsd-ports/net/socks5/files/patch-aq
Yoshinobu Inoue e53d640ca4 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
2000-02-24 06:37:27 +00:00

21 lines
688 B
Plaintext

--- include/socks.h.orig Wed Aug 4 04:59:30 1999
+++ include/socks.h Mon Feb 21 14:44:03 2000
@@ -52,6 +52,9 @@
#ifdef HAVE_GETHOSTBYNAME2
extern struct hostent *LIBPREFIX(gethostbyname2) P((char *, int));
#endif
+extern int LIBPREFIX(getaddrinfo) P((const char *, const char *,
+ const struct addrinfo *,
+ struct addrinfo **));
#endif /* include prototypes */
#ifndef LIBPREFIX
@@ -93,6 +96,7 @@
#ifdef HAVE_GETHOSTBYNAME2
#define gethostbyname2 LIBPREFIX(gethostbyname2)
#endif
+#define getaddrinfo LIBPREFIX(getaddrinfo)
#define gethostbyname LIBPREFIX(gethostbyname)
#define rresvport LIBPREFIX(rresvport)
#define connect LIBPREFIX(connect)