summaryrefslogtreecommitdiff
path: root/gl/m4/netdb_h.m4
diff options
context:
space:
mode:
Diffstat (limited to 'gl/m4/netdb_h.m4')
-rw-r--r--gl/m4/netdb_h.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/gl/m4/netdb_h.m4 b/gl/m4/netdb_h.m4
index ecb57b4e66..bbe166fab4 100644
--- a/gl/m4/netdb_h.m4
+++ b/gl/m4/netdb_h.m4
@@ -1,4 +1,4 @@
-# netdb_h.m4 serial 2
+# netdb_h.m4 serial 3
dnl Copyright (C) 2008 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -9,7 +9,8 @@ AC_DEFUN([gl_HEADER_NETDB],
AC_REQUIRE([gl_NETDB_H_DEFAULTS])
gl_CHECK_NEXT_HEADERS([netdb.h])
if test $ac_cv_header_netdb_h = yes; then
- NETDB_H=''
+ AC_CHECK_TYPES([struct addrinfo], [NETDB_H=''], [NETDB_H='netdb.h'],
+ [[#include <netdb.h>]])
HAVE_NETDB_H=1
else
NETDB_H='netdb.h'