summaryrefslogtreecommitdiff
path: root/src/a2netcompat.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-03 15:41:58 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-03 15:41:58 +0000
commit62e1cbd0c03839e0623da962feee356cb9b633d9 (patch)
tree86913021da024f0b4f651fdb093f9d906b26a720 /src/a2netcompat.h
parent55552adb9350d698a762cf40615f9b943a6580df (diff)
2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Merged Ross's mingw patch. * src/DHTRoutingTableDeserializer.cc * src/DHTRoutingTableSerializer.cc * src/Platform.{h, cc} * src/timegm.h * src/gettimeofday.h * src/getaddrinfo.h * src/SocketCore.h * src/common.h * src/inet_aton.h * src/DownloadEngine.h * src/gai_strerror.h * src/a2netcompat.h * configure.ac * configure * aclocal.m4
Diffstat (limited to 'src/a2netcompat.h')
-rw-r--r--src/a2netcompat.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/a2netcompat.h b/src/a2netcompat.h
index f7915436..f811b1d7 100644
--- a/src/a2netcompat.h
+++ b/src/a2netcompat.h
@@ -91,4 +91,25 @@
# include "gai_strerror.h"
#endif // HAVE_GAI_STRERROR
+#ifdef __MINGW32__
+# ifndef AI_PASSIVE
+# define AI_PASSIVE 0x0020
+# endif // AI_PASSIVE
+# ifndef AI_NUMERICHOST
+# define AI_NUMERICHOST 0x0008
+# endif // AI_NUMERICHOST
+# ifndef NI_NUMERICHOST
+# define NI_NUMERICHOST 0x0008
+# endif // NI_NUMERICHOST
+# ifndef NI_NUMERICSERV
+# define NI_NUMERICSERV 0x0020
+# endif // NI_NUMERICSERV
+# ifndef NI_MAXHOST
+# define NI_MAXHOST 1025
+# endif // NI_MAXHOST
+# ifndef NI_MAXSERV
+# define NI_MAXSERV 32
+# endif // NI_MAXSERV
+#endif // __MINGW32__
+
#endif // _D_A2NETCOMPAT_H_