From a308aef89d5b262c9e04f51e2a695bee90446cb1 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Sat, 28 Feb 2015 22:20:07 -0500 Subject: Look for and use gethostbyname() if we don't have getaddrinfo(). Fail to configure if we can't find any name resolver (autotools only). This puts back the gethostbyname()/gethostbyname2() code removed in I3348179626e97daaddfbc89e3ed21e39915e3de4 and If59ce8a038776eadd6cd1794ed0e2dad8bf8a22c but as a last-resort option (only if we don't have a better or more modern name resolver). As suggested/requested by Guy in https://code.wireshark.org/review/#/c/7423/ Change-Id: I706dbbd65135f47c67d3d8d88a61ad7273914c47 Reviewed-on: https://code.wireshark.org/review/7447 Petri-Dish: Jeff Morriss Tested-by: Petri Dish Buildbot Reviewed-by: Jeff Morriss --- cmakeconfig.h.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmakeconfig.h.in') diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in index 2887c27c80..0ad3fb521a 100644 --- a/cmakeconfig.h.in +++ b/cmakeconfig.h.in @@ -70,6 +70,12 @@ /* Define to 1 if you have the `getaddrinfo' function. */ #cmakedefine HAVE_GETADDRINFO 1 +/* Define to 1 if you have the `gethostbyname' function. */ +#cmakedefine HAVE_GETHOSTBYNAME 1 + +/* Define to 1 if you have the `gethostbyname2' function. */ +#cmakedefine HAVE_GETHOSTBYNAME2 1 + /* Define to 1 if you have the getopt_long function. */ #cmakedefine HAVE_GETOPT_LONG 1 -- cgit v1.2.3