浏览代码

Define HAVE_GETADDRINFO only if it is not defined in MinGW build.

Tatsuhiro Tsujikawa 13 年之前
父节点
当前提交
3f7561b80c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/a2netcompat.h

+ 3 - 1
src/a2netcompat.h

@@ -54,7 +54,9 @@
 
 #ifdef __MINGW32__
 # define a2_sockopt_t char *
-# define HAVE_GETADDRINFO
+# ifndef HAVE_GETADDRINFO
+#   define HAVE_GETADDRINFO
+# endif // !HAVE_GETADDRINFO
 # undef HAVE_GAI_STRERROR
 # undef gai_strerror
 #else