X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Finet_pton.m4;h=85e802c8bd643a063682a35f7b25be14301ed8fa;hb=48ee8b2ef2165371632bc30c5f183f64d1e7f50e;hp=9051cc24160aeeadfb9d7942eca1a68e44e2198f;hpb=cf357e415055e3979d0f0d72b3046022f4bb7812;p=gnulib.git diff --git a/m4/inet_pton.m4 b/m4/inet_pton.m4 index 9051cc241..85e802c8b 100644 --- a/m4/inet_pton.m4 +++ b/m4/inet_pton.m4 @@ -1,4 +1,4 @@ -# inet_pton.m4 serial 1 +# inet_pton.m4 serial 2 dnl Copyright (C) 2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -12,7 +12,8 @@ AC_DEFUN([gl_INET_PTON], # Prerequisites of lib/inet_pton.h and lib/inet_pton.c. AC_DEFUN([gl_PREREQ_INET_PTON], [ - AC_CHECK_HEADERS_ONCE(arpa/inet.h) + AC_CHECK_HEADERS_ONCE([netinet/in.h arpa/inet.h]) AC_CHECK_DECLS([inet_pton],,,[#include ]) AC_REQUIRE([gl_SOCKET_FAMILIES]) + AC_REQUIRE([AC_C_RESTRICT]) ])