Parcourir la source

Update configure.ac/config.h.win32 for new inet functions

Stéphane Raimbault il y a 2 ans
Parent
commit
ae015c96f2
2 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. 1 1
      configure.ac
  2. 0 3
      src/win32/config.h.win32

+ 1 - 1
configure.ac

@@ -104,7 +104,7 @@ AC_CHECK_DECLS([__CYGWIN__])
 AC_SEARCH_LIBS(accept, network socket)
 
 # Checks for library functions.
-AC_CHECK_FUNCS([accept4 getaddrinfo gettimeofday inet_ntoa select socket strerror strlcpy])
+AC_CHECK_FUNCS([accept4 getaddrinfo gettimeofday inet_pton inet_ntop select socket strerror strlcpy])
 
 # Required for MinGW with GCC v4.8.1 on Win7
 AC_DEFINE(WINVER, 0x0501, _)

+ 0 - 3
src/win32/config.h.win32

@@ -30,9 +30,6 @@
 /* Define to 1 if you have the `gettimeofday' function. */
 /* #undef HAVE_GETTIMEOFDAY */
 
-/* Define to 1 if you have the `inet_ntoa' function. */
-/* #undef HAVE_INET_NTOA */
-
 /* Define to 1 if you have the <inttypes.h> header file. */
 #define HAVE_INTTYPES_H 1