summaryrefslogtreecommitdiff
path: root/src/network/core/os_abstraction.h
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-04-03 23:44:31 +0000
committerglx <glx@openttd.org>2009-04-03 23:44:31 +0000
commite460d3f4d02c72f6b661a722b70ddaaa48bc5e92 (patch)
treea27674f3832ce1325ec2af708c7cd7f28f8aa03f /src/network/core/os_abstraction.h
parent7cf4639255c7374750887ebfa4dd66bab37da1e7 (diff)
downloadopenttd-e460d3f4d02c72f6b661a722b70ddaaa48bc5e92.tar.xz
(svn r15945) -Fix (r15944): win32 compilation
Diffstat (limited to 'src/network/core/os_abstraction.h')
-rw-r--r--src/network/core/os_abstraction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/core/os_abstraction.h b/src/network/core/os_abstraction.h
index 58824d8b8..28c53d91c 100644
--- a/src/network/core/os_abstraction.h
+++ b/src/network/core/os_abstraction.h
@@ -28,11 +28,13 @@ typedef unsigned long in_addr_t;
/* Windows has some different names for some types */
typedef SSIZE_T ssize_t;
typedef int socklen_t;
+# define IPPROTO_IPV6 41
#else
#include "../../win32.h"
#include "../../core/alloc_func.hpp"
#define AI_ADDRCONFIG 0x00000400 // Resolution only if global address configured
+#define IPV6_V6ONLY 27
static inline int OTTDgetnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, DWORD hostlen, char *serv, DWORD servlen, int flags)
{