From 3f7561b80c48654e21bc14366593799acca0eaf5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 7 Apr 2012 23:56:37 +0900 Subject: [PATCH] Define HAVE_GETADDRINFO only if it is not defined in MinGW build. --- src/a2netcompat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/a2netcompat.h b/src/a2netcompat.h index 01be9c25..3e2e8ccc 100644 --- a/src/a2netcompat.h +++ b/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