Include arpa/inet.h on any GNU libc platform (#24)
This header is provided by GNU libc on any platform, so include it unconditionally if __GLIBC__ is defined. Fixes #23.
This commit is contained in:
committed by
Stuart D. Gathman
parent
d30918aca7
commit
183ce91a61
+1
-1
@@ -71,7 +71,7 @@ $ python setup.py help
|
|||||||
* published. Unfortunately I know of no good way to do this
|
* published. Unfortunately I know of no good way to do this
|
||||||
* other than with OS-specific tests.
|
* other than with OS-specific tests.
|
||||||
*/
|
*/
|
||||||
#if defined(__FreeBSD__) || defined(__linux__) || defined(__sun__)
|
#if defined(__FreeBSD__) || defined(__linux__) || defined(__sun__) || defined(__GLIBC__)
|
||||||
#define HAVE_IPV6_RFC2553
|
#define HAVE_IPV6_RFC2553
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user