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:
Pino Toscano authored and Stuart D. Gathman committed 2018-12-24 17:42:13 -05:00
1 parent d30918aca7
commit 183ce91a61
1 file changed
+1 -1
+1 -1
View File
@@ -71,7 +71,7 @@ $ python setup.py help
* published. Unfortunately I know of no good way to do this
* 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
#include <arpa/inet.h>
#endif