瀏覽代碼

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

Stéphane Raimbault 2 年之前
父節點
當前提交
ae015c96f2
共有 2 個文件被更改,包括 1 次插入4 次删除
  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