mirror of https://github.com/OpenTTD/OpenTTD
(svn r15945) -Fix (r15944): win32 compilation
parent
7cf4639255
commit
e460d3f4d0
|
@ -28,11 +28,13 @@ typedef unsigned long in_addr_t;
|
||||||
/* Windows has some different names for some types */
|
/* Windows has some different names for some types */
|
||||||
typedef SSIZE_T ssize_t;
|
typedef SSIZE_T ssize_t;
|
||||||
typedef int socklen_t;
|
typedef int socklen_t;
|
||||||
|
# define IPPROTO_IPV6 41
|
||||||
#else
|
#else
|
||||||
#include "../../win32.h"
|
#include "../../win32.h"
|
||||||
#include "../../core/alloc_func.hpp"
|
#include "../../core/alloc_func.hpp"
|
||||||
|
|
||||||
#define AI_ADDRCONFIG 0x00000400 // Resolution only if global address configured
|
#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)
|
static inline int OTTDgetnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, DWORD hostlen, char *serv, DWORD servlen, int flags)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue