Mercurial > hg > octave-jordi > gnulib-hg
comparison m4/inet_pton.m4 @ 14037:3f2c77c8adb8
inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
* lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
* m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
* m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
looking for the declaration.
* m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
* doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
problem.
* doc/posix-functions/inet_pton.texi: Likewise.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Mon, 27 Dec 2010 01:22:00 +0100 |
parents | 50f35a5ef466 |
children | 97fc9a21a8fb |
comparison
equal
deleted
inserted
replaced
14036:c475f1b6d204 | 14037:3f2c77c8adb8 |
---|---|
1 # inet_pton.m4 serial 10 | 1 # inet_pton.m4 serial 11 |
2 dnl Copyright (C) 2006, 2008, 2009, 2010 Free Software Foundation, Inc. | 2 dnl Copyright (C) 2006, 2008, 2009, 2010 Free Software Foundation, Inc. |
3 dnl This file is free software; the Free Software Foundation | 3 dnl This file is free software; the Free Software Foundation |
4 dnl gives unlimited permission to copy and/or distribute it, | 4 dnl gives unlimited permission to copy and/or distribute it, |
5 dnl with or without modifications, as long as this notice is preserved. | 5 dnl with or without modifications, as long as this notice is preserved. |
6 | 6 |
27 gl_PREREQ_INET_PTON | 27 gl_PREREQ_INET_PTON |
28 ]) | 28 ]) |
29 | 29 |
30 # Prerequisites of lib/inet_pton.c. | 30 # Prerequisites of lib/inet_pton.c. |
31 AC_DEFUN([gl_PREREQ_INET_PTON], [ | 31 AC_DEFUN([gl_PREREQ_INET_PTON], [ |
32 AC_CHECK_DECLS([inet_pton],,,[#include <arpa/inet.h>]) | 32 AC_CHECK_HEADERS_ONCE([netdb.h]) |
33 AC_CHECK_DECLS([inet_pton],,, | |
34 [#include <arpa/inet.h> | |
35 #if HAVE_NETDB_H | |
36 # include <netdb.h> | |
37 #endif | |
38 ]) | |
33 if test $ac_cv_have_decl_inet_pton = no; then | 39 if test $ac_cv_have_decl_inet_pton = no; then |
34 HAVE_DECL_INET_PTON=0 | 40 HAVE_DECL_INET_PTON=0 |
35 fi | 41 fi |
36 AC_REQUIRE([gl_SOCKET_FAMILIES]) | 42 AC_REQUIRE([gl_SOCKET_FAMILIES]) |
37 AC_REQUIRE([AC_C_RESTRICT]) | 43 AC_REQUIRE([AC_C_RESTRICT]) |