diff options
Diffstat (limited to 'gl/m4/inet_pton.m4')
| -rw-r--r-- | gl/m4/inet_pton.m4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gl/m4/inet_pton.m4 b/gl/m4/inet_pton.m4 index b6e59a25..150c3a07 100644 --- a/gl/m4/inet_pton.m4 +++ b/gl/m4/inet_pton.m4 | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | # inet_pton.m4 | 1 | # inet_pton.m4 |
| 2 | # serial 20 | 2 | # serial 21 |
| 3 | dnl Copyright (C) 2006, 2008-2025 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 2006, 2008-2026 Free Software Foundation, Inc. |
| 4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
| 5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
| 6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
| @@ -19,6 +19,7 @@ AC_DEFUN([gl_FUNC_INET_PTON], | |||
| 19 | dnl Solaris 8..10 provide inet_pton in libnsl instead. | 19 | dnl Solaris 8..10 provide inet_pton in libnsl instead. |
| 20 | dnl Solaris 2.6..7 provide inet_pton in libresolv instead. | 20 | dnl Solaris 2.6..7 provide inet_pton in libresolv instead. |
| 21 | dnl Haiku provides it in -lnetwork. | 21 | dnl Haiku provides it in -lnetwork. |
| 22 | dnl QNX provides it in -lsocket. | ||
| 22 | dnl Native Windows provides it in -lws2_32 instead, with a declaration in | 23 | dnl Native Windows provides it in -lws2_32 instead, with a declaration in |
| 23 | dnl <ws2tcpip.h>, and it uses stdcall calling convention, not cdecl | 24 | dnl <ws2tcpip.h>, and it uses stdcall calling convention, not cdecl |
| 24 | dnl (hence we cannot use AC_CHECK_FUNCS, AC_SEARCH_LIBS to find it). | 25 | dnl (hence we cannot use AC_CHECK_FUNCS, AC_SEARCH_LIBS to find it). |
| @@ -39,7 +40,7 @@ AC_DEFUN([gl_FUNC_INET_PTON], | |||
| 39 | fi | 40 | fi |
| 40 | else | 41 | else |
| 41 | gl_saved_LIBS=$LIBS | 42 | gl_saved_LIBS=$LIBS |
| 42 | AC_SEARCH_LIBS([inet_pton], [nsl resolv network], [], | 43 | AC_SEARCH_LIBS([inet_pton], [nsl resolv network socket], [], |
| 43 | [AC_CHECK_FUNCS([inet_pton]) | 44 | [AC_CHECK_FUNCS([inet_pton]) |
| 44 | if test $ac_cv_func_inet_pton = no; then | 45 | if test $ac_cv_func_inet_pton = no; then |
| 45 | HAVE_INET_PTON=0 | 46 | HAVE_INET_PTON=0 |
