Blame patches/ngircd-26.1_pre.local.patch

93e15c
diff -ru ngircd-26.1.orig/configure ngircd-26.1/configure
93e15c
--- ngircd-26.1.orig/configure	2021-01-02 14:21:14.000000000 +0000
93e15c
+++ ngircd-26.1/configure	2021-05-25 11:07:06.800708600 +0000
93e15c
@@ -6269,56 +6269,9 @@
93e15c
 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
93e15c
   cat >>confdefs.h <<_ACEOF
93e15c
 #define HAVE_GETADDRINFO 1
93e15c
+#define HAVE_WORKING_GETADDRINFO 1
93e15c
 _ACEOF
93e15c
 
93e15c
-		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getaddrinfo() works" >&5
93e15c
-$as_echo_n "checking whether getaddrinfo() works... " >&6; }
93e15c
-		if test "$cross_compiling" = yes; then :
93e15c
-
93e15c
-		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93e15c
-$as_echo "no" >&6; }
93e15c
-
93e15c
-else
93e15c
-  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93e15c
-/* end confdefs.h.  */
93e15c
-
93e15c
-#include <stdio.h>
93e15c
-#include <sys/types.h>
93e15c
-#include <sys/socket.h>
93e15c
-#include <netdb.h>
93e15c
-int
93e15c
-main(int argc, char **argv)
93e15c
-{
93e15c
-	struct addrinfo hints, *ai;
93e15c
-	memset(&hints, 0, sizeof(hints));
93e15c
-	hints.ai_flags = AI_PASSIVE;
93e15c
-	hints.ai_socktype = SOCK_STREAM;
93e15c
-	hints.ai_family = PF_UNSPEC;
93e15c
-	if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
93e15c
-		return 1;
93e15c
-	return 0;
93e15c
-}
93e15c
-
93e15c
-_ACEOF
93e15c
-if ac_fn_c_try_run "$LINENO"; then :
93e15c
-
93e15c
-
93e15c
-$as_echo "#define HAVE_WORKING_GETADDRINFO 1" >>confdefs.h
93e15c
-
93e15c
-		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
93e15c
-$as_echo "yes" >&6; }
93e15c
-
93e15c
-else
93e15c
-
93e15c
-		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
93e15c
-$as_echo "no" >&6; }
93e15c
-
93e15c
-fi
93e15c
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
93e15c
-  conftest.$ac_objext conftest.beam conftest.$ac_ext
93e15c
-fi
93e15c
-
93e15c
-
93e15c
 fi
93e15c
 done
93e15c
 
93e15c