X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=m4%2Finet_ntop.m4;h=bb02d2298b9ad34079228dee5a4ccfabe07a1fdc;hb=b4feec417c7eae7c4a920986d8c81659ac5c9a79;hp=fea429e74bdb7d4a78e900357c6353cbe1defe2e;hpb=f74678545ef70a55cc08b1b06380fba3116ebf4a;p=gnulib.git diff --git a/m4/inet_ntop.m4 b/m4/inet_ntop.m4 index fea429e74..bb02d2298 100644 --- a/m4/inet_ntop.m4 +++ b/m4/inet_ntop.m4 @@ -1,5 +1,5 @@ -# inet_ntop.m4 serial 1 -dnl Copyright (C) 2005 Free Software Foundation, Inc. +# inet_ntop.m4 serial 3 +dnl Copyright (C) 2005, 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, dnl with or without modifications, as long as this notice is preserved. @@ -12,5 +12,8 @@ AC_DEFUN([gl_INET_NTOP], # Prerequisites of lib/inet_ntop.h and lib/inet_ntop.c. AC_DEFUN([gl_PREREQ_INET_NTOP], [ + AC_CHECK_HEADERS_ONCE([netinet/in.h arpa/inet.h]) + AC_CHECK_DECLS([inet_ntop],,,[#include ]) AC_REQUIRE([gl_SOCKET_FAMILIES]) + AC_REQUIRE([AC_C_RESTRICT]) ])