From c52cf6000923b6a5c6416360d9425061dd19424d Mon Sep 17 00:00:00 2001 From: Jozsef Kadlecsik Date: Mon, 5 Nov 2012 17:11:10 +0100 Subject: Use gethostbyname2 instead of getaddrinfo In newer glibc, getaddrinfo issues an extra system call to kernel, which slows down ipset. Replace getaddrinfo with gethostbyname2, where possible. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index d9bc2fb..7b3e70b 100644 --- a/configure.ac +++ b/configure.ac @@ -162,6 +162,9 @@ AC_CHECK_TYPES([union nf_inet_addr],,,[#include #include #include ]) +dnl Checks for functions +AC_CHECK_FUNCS(gethostbyname2) + dnl Checks for compiler characteristics. dnl Check extra warning flags except dnl -Wconversion -> we need it -- cgit v1.2.3