summaryrefslogtreecommitdiff
path: root/m4/curl-reentrant.m4
diff options
context:
space:
mode:
authorGergely Nagy <ngg@tresorit.com>2021-06-18 10:39:35 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-06-18 13:52:21 +0200
commit6f5ff0ee04e2bcaf16bf2121c533bea38581cfe7 (patch)
tree1bf3a868c29c4e9bb25224e19850b9687b17aa22 /m4/curl-reentrant.m4
parentf471efa78c64e405b61a195f072f8b759905f43f (diff)
downloadcurl-6f5ff0ee04e2bcaf16bf2121c533bea38581cfe7.tar.gz
configure/cmake: remove checks for unused gethostbyaddr and gethostbyaddr_r
Closes #7276
Diffstat (limited to 'm4/curl-reentrant.m4')
-rw-r--r--m4/curl-reentrant.m436
1 files changed, 0 insertions, 36 deletions
diff --git a/m4/curl-reentrant.m4 b/m4/curl-reentrant.m4
index 3e4d6a969..1ca047908 100644
--- a/m4/curl-reentrant.m4
+++ b/m4/curl-reentrant.m4
@@ -214,39 +214,6 @@ AC_DEFUN([CURL_CHECK_NEED_REENTRANT_STRTOK_R], [
])
-dnl CURL_CHECK_NEED_REENTRANT_GETHOSTBYADDR_R
-dnl -------------------------------------------------
-dnl Checks if the preprocessor _REENTRANT definition
-dnl makes function gethostbyaddr_r compiler visible.
-
-AC_DEFUN([CURL_CHECK_NEED_REENTRANT_GETHOSTBYADDR_R], [
- AC_LINK_IFELSE([
- AC_LANG_FUNC_LINK_TRY([gethostbyaddr_r])
- ],[
- tmp_gethostbyaddr_r="yes"
- ],[
- tmp_gethostbyaddr_r="no"
- ])
- if test "$tmp_gethostbyaddr_r" = "yes"; then
- AC_EGREP_CPP([gethostbyaddr_r],[
-#include <sys/types.h>
-#include <netdb.h>
- ],[
- tmp_gethostbyaddr_r="proto_declared"
- ],[
- AC_EGREP_CPP([gethostbyaddr_r],[
-#define _REENTRANT
-#include <sys/types.h>
-#include <netdb.h>
- ],[
- tmp_gethostbyaddr_r="proto_needs_reentrant"
- tmp_need_reentrant="yes"
- ])
- ])
- fi
-])
-
-
dnl CURL_CHECK_NEED_REENTRANT_GETHOSTBYNAME_R
dnl -------------------------------------------------
dnl Checks if the preprocessor _REENTRANT definition
@@ -333,9 +300,6 @@ AC_DEFUN([CURL_CHECK_NEED_REENTRANT_FUNCTIONS_R], [
CURL_CHECK_NEED_REENTRANT_STRTOK_R
fi
if test "$tmp_need_reentrant" = "no"; then
- CURL_CHECK_NEED_REENTRANT_GETHOSTBYADDR_R
- fi
- if test "$tmp_need_reentrant" = "no"; then
CURL_CHECK_NEED_REENTRANT_GETHOSTBYNAME_R
fi
if test "$tmp_need_reentrant" = "no"; then