aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-03-05 22:20:42 +0100
committerMatthias Andree <matthias.andree@gmx.de>2010-03-05 22:20:42 +0100
commit7af830a55a6cb82ff4f7e1102f28e1def1b2e193 (patch)
tree1e6e3720d9f8ac6d872dcb362c08f6dadd10f68a /configure.ac
parentc41317d22a0cc6a673dfc226d890e18f60ca5883 (diff)
downloadfetchmail-7af830a55a6cb82ff4f7e1102f28e1def1b2e193.tar.gz
fetchmail-7af830a55a6cb82ff4f7e1102f28e1def1b2e193.tar.bz2
fetchmail-7af830a55a6cb82ff4f7e1102f28e1def1b2e193.zip
Properly check for h_errno declaration and include netdb.h.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
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 <netdb.h>
+ #endif
+])
+
AC_C_CONST dnl getopt needs this.
AM_PROG_LEX