mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-03 01:38:09 +01:00
Fix: [Cygwin] Fix missing AI_ADDRCONFIG declaration
Fixes the following complaints: src/network/core/address.cpp: In member function 'const sockaddr_storage* NetworkAddress::GetAddress()': src/network/core/address.cpp:134:55: error: 'AI_ADDRCONFIG' was not declared in this scope this->Resolve(this->address.ss_family, SOCK_STREAM, AI_ADDRCONFIG, nullptr, ResolveLoopProc); Signed-off-by: Joe Stringer <joe@wand.net.nz>
This commit is contained in:
parent
51f8c8a568
commit
b4f1056097
@ -31,6 +31,11 @@
|
||||
/* Windows has some different names for some types */
|
||||
typedef unsigned long in_addr_t;
|
||||
|
||||
/* Handle cross-compilation with --build=*-*-cygwin --host=*-*-mingw32 */
|
||||
#if defined(__MINGW32__) && !defined(AI_ADDRCONFIG)
|
||||
# define AI_ADDRCONFIG 0x00000400
|
||||
#endif
|
||||
|
||||
#if !(defined(__MINGW32__) || defined(__CYGWIN__))
|
||||
/* Windows has some different names for some types */
|
||||
typedef SSIZE_T ssize_t;
|
||||
|
Loading…
Reference in New Issue
Block a user