diff options
| author | Fabio Alessandrelli | 2016-10-30 22:58:15 +0100 |
|---|---|---|
| committer | Fabio Alessandrelli | 2016-12-11 18:12:46 +0100 |
| commit | e1dfaaf786dc6bc3a4de85a920f4918a58ebfc74 (patch) | |
| tree | 2f64aebc8d992f7f0281e7789dfe7c1fe2ad8929 /drivers | |
| parent | 3f6fe2f3f1af74fc417a32d7e2269f371879b9b8 (diff) | |
| download | godot-e1dfaaf786dc6bc3a4de85a920f4918a58ebfc74.tar.gz godot-e1dfaaf786dc6bc3a4de85a920f4918a58ebfc74.tar.zst godot-e1dfaaf786dc6bc3a4de85a920f4918a58ebfc74.zip | |
Define IPV6_V6ONLY flag if not defined on windows (old mingw versions)
(cherry picked from commit bdc7ca84cac727f3f94663f23e1229450230bd2e)
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/unix/socket_helpers.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/unix/socket_helpers.h b/drivers/unix/socket_helpers.h index 80e013ad6..9693911ac 100644 --- a/drivers/unix/socket_helpers.h +++ b/drivers/unix/socket_helpers.h @@ -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) { |
