From 52ea29045b79a5f996e454ac6c7f3bcd64aef572 Mon Sep 17 00:00:00 2001 From: Thomas Munro Date: Sun, 14 Aug 2022 09:57:48 +1200 Subject: Remove configure probe for gethostbyname_r. It was only used by src/port/getaddrinfo.c, removed by the previous commit. Discussion: https://postgr.es/m/CA%2BhUKGJFLPCtAC58EAimF6a6GPw30TU_59FUY%3DGWB_kC%3DJEmVQ%40mail.gmail.com --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index e4156a78be7..eed7019c4a2 100644 --- a/configure.ac +++ b/configure.ac @@ -1214,7 +1214,7 @@ LIBS="$LIBS $PTHREAD_LIBS" AC_CHECK_HEADER(pthread.h, [], [AC_MSG_ERROR([ pthread.h not found; use --disable-thread-safety to disable thread safety])]) -AC_CHECK_FUNCS([strerror_r gethostbyname_r]) +AC_CHECK_FUNCS([strerror_r]) # Do test here with the proper thread flags PGAC_FUNC_STRERROR_R_INT @@ -1260,7 +1260,6 @@ AC_SEARCH_LIBS(shmget, cygipc) AC_SEARCH_LIBS(backtrace_symbols, execinfo) if test "$enable_thread_safety" = yes; then - AC_SEARCH_LIBS(gethostbyname_r, nsl) AC_SEARCH_LIBS(pthread_barrier_wait, pthread) fi -- cgit v1.2.3