|author||Gerald Combs <firstname.lastname@example.org>||2015-02-04 12:18:37 -0800|
|committer||Anders Broman <email@example.com>||2015-02-06 08:07:10 +0000|
Remove gethostbyaddr and gethostbyaddr2.
They've been deprecated for a very long time. Replace them with getaddrinfo. Note that we might not want to do synchronous name resolution at all. Add HAVE_GETADDRINFO to the KfW win-mac.h collision list. Change-Id: If59ce8a038776eadd6cd1794ed0e2dad8bf8a22c Reviewed-on: https://code.wireshark.org/review/6958 Reviewed-by: Gerald Combs <firstname.lastname@example.org> Petri-Dish: Gerald Combs <email@example.com> Tested-by: Petri Dish Buildbot <firstname.lastname@example.org> Reviewed-by: Anders Broman <email@example.com>
Diffstat (limited to 'acinclude.m4')
1 files changed, 9 insertions, 7 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index de635e1520..dba599c2ce 100644
@@ -268,25 +268,27 @@ yes
-# Checks whether we need "-lnsl" to get "gethostby*()", which we use
-# in "resolv.c".
+# Checks whether we need "-lnsl" to get "getaddrinfo()", which we use
+# in "addr_resolv.c".
# Adapted from stuff in the AC_PATH_XTRA macro in "acspecific.m4" in
# GNU Autoconf 2.13; the comment came from there.
# Done by Guy Harris <firstname.lastname@example.org> on 2000-01-14.
+ # Comments below apply to gethostbyname(), from which this was
+ # migrated:
# email@example.com says -lnsl (and -lsocket) are needed for his 386/AT,
# to get the SysV transport functions.
# firstname.lastname@example.org says the Pyramid MIS-ES running DC/OSx (SVR4)
# needs -lnsl.
# The nsl library prevents programs from opening the X display
# on Irix 5.2, according to email@example.com.
- AC_CHECK_FUNC(gethostbyname, ,
- AC_CHECK_LIB(nsl, gethostbyname, NSL_LIBS="-lnsl"))
+ AC_CHECK_FUNC(getaddrinfo, ,
+ AC_CHECK_LIB(nsl, getaddrinfo, NSL_LIBS="-lnsl"))
@@ -294,7 +296,7 @@ AC_DEFUN([AC_WIRESHARK_GETHOSTBY_LIB_CHECK],
# Checks whether we need "-lsocket" to get "socket()", which is used
-# by libpcap on some platforms - and, in effect, "gethostby*()" on
+# by libpcap on some platforms - and, in effect, "getaddrinfo()" on
# most if not all platforms (so that it can use NIS or DNS or...
# to look up host names).