1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

Define IPV6_V6ONLY flag if not defined on windows (old mingw versions)

This commit is contained in:
Fabio Alessandrelli
2016-10-30 22:58:15 +01:00
parent 7f42da0330
commit bdc7ca84ca

View File

@@ -3,6 +3,13 @@
#include <string.h>
#ifdef WINDOWS_ENABLED
// Workaround mingw missing flags!
#ifndef IPV6_V6ONLY
#define IPV6_V6ONLY 27
#endif
#endif
// helpers for sockaddr -> IP_Address and back, should work for posix and winsock. All implementations should use this
static size_t _set_sockaddr(struct sockaddr_storage* p_addr, const IP_Address& p_ip, int p_port) {