summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/windows.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/windows.hpp b/src/windows.hpp
index 7cb9291..81c4d38 100644
--- a/src/windows.hpp
+++ b/src/windows.hpp
@@ -65,4 +65,8 @@
#include <ipexport.h>
#include <process.h>
+// On mingw environment AI_NUMERICSERV is not defined, needed in ip.cpp.
+#ifndef AI_NUMERICSERV
+#define AI_NUMERICSERV 0x0400
+#endif
#endif