mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 17:09:34 -05:00
Workaround for systems that miss IPV6_V6ONLY
This should improve compatibility with old systems that miss IPV6_V6ONLY and in particular for Windows XP
This commit is contained in:
parent
c19919962d
commit
f20705b36d
@ -58,6 +58,15 @@ int inet_aton(const char *name, struct in_addr *addr);
|
||||
#endif
|
||||
/********************************** WINDOWS/UNIX SPECIFIC PART ******************/
|
||||
|
||||
/**
|
||||
* Workaround for binary compatibility between Windows XP (which miss
|
||||
* IPV6_V6ONLY define), and newer Windows that has it.
|
||||
* @see http://lua-users.org/lists/lua-l/2013-04/msg00191.html
|
||||
*/
|
||||
#ifndef IPV6_V6ONLY
|
||||
# define IPV6_V6ONLY 27
|
||||
#endif
|
||||
|
||||
/* 64 bit conversions */
|
||||
#ifndef ntohll
|
||||
uint64_t ntohll(uint64_t x);
|
||||
|
Loading…
Reference in New Issue
Block a user