diff options
author | Bruno Haible <bruno@clisp.org> | 2010-04-26 10:25:56 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-04-26 10:25:56 +0200 |
commit | ad8f11251eeef41965bd7a358516325238117971 (patch) | |
tree | 5ceb782c7e1b83c67b19edf81ab4be0de6a340e3 /m4/netdb_h.m4 | |
parent | 3552ea714b8a640d547de5783b394f08be252ae0 (diff) | |
download | gnulib-ad8f11251eeef41965bd7a358516325238117971.tar.gz |
netdb: Add support for GNULIB_POSIXCHECK.
Diffstat (limited to 'm4/netdb_h.m4')
-rw-r--r-- | m4/netdb_h.m4 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/m4/netdb_h.m4 b/m4/netdb_h.m4 index e04a2d13ee..c870fb61b9 100644 --- a/m4/netdb_h.m4 +++ b/m4/netdb_h.m4 @@ -1,4 +1,4 @@ -# netdb_h.m4 serial 8 +# netdb_h.m4 serial 9 dnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -15,6 +15,11 @@ AC_DEFUN([gl_HEADER_NETDB], HAVE_NETDB_H=0 fi AC_SUBST([HAVE_NETDB_H]) + + dnl Check for declarations of anything we want to poison if the + dnl corresponding gnulib module is not in use. + gl_WARN_ON_USE_PREPARE([[#include <netdb.h>]], + [getaddrinfo freeaddrinfo gai_strerror getnameinfo]) ]) AC_DEFUN([gl_NETDB_MODULE_INDICATOR], |