Define socket constants on MinGW if missing
This commit is contained in:
@@ -39,6 +39,19 @@ typedef unsigned long in_addr_t;
|
|||||||
typedef int socklen_t;
|
typedef int socklen_t;
|
||||||
# define IPPROTO_IPV6 41
|
# define IPPROTO_IPV6 41
|
||||||
#endif /* !(__MINGW32__ && __CYGWIN__) */
|
#endif /* !(__MINGW32__ && __CYGWIN__) */
|
||||||
|
|
||||||
|
#if defined(__MINGW32__)
|
||||||
|
#ifndef AI_ADDRCONFIG
|
||||||
|
#define AI_ADDRCONFIG 0x400
|
||||||
|
#endif
|
||||||
|
#ifndef IPPROTO_IPV6
|
||||||
|
#define IPPROTO_IPV6 41
|
||||||
|
#endif
|
||||||
|
#ifndef IPV6_V6ONLY
|
||||||
|
#define IPV6_V6ONLY 27
|
||||||
|
#endif
|
||||||
|
#endif /* __MINGW32__ */
|
||||||
|
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
/* UNIX stuff */
|
/* UNIX stuff */
|
||||||
|
Reference in New Issue
Block a user