From 7af830a55a6cb82ff4f7e1102f28e1def1b2e193 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 5 Mar 2010 22:20:42 +0100 Subject: Properly check for h_errno declaration and include netdb.h. --- configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index c6a4b98d..428fc3d3 100644 --- a/configure.ac +++ b/configure.ac @@ -93,6 +93,13 @@ AC_CHECK_HEADERS([resolv.h],,,[ #endif ]) +AC_CHECK_DECLS([h_errno],,,[ + AC_INCLUDES_DEFAULT + #ifdef HAVE_NETDB_H + #include + #endif +]) + AC_C_CONST dnl getopt needs this. AM_PROG_LEX -- cgit v1.2.3