From 183ce91a619002257f54e7ff148ac25ef0bc16c8 Mon Sep 17 00:00:00 2001 From: Pino Toscano <toscano.pino@tiscali.it> Date: Mon, 24 Dec 2018 23:42:13 +0100 Subject: [PATCH] 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. --- miltermodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miltermodule.c b/miltermodule.c index b77bb7d..e3d0927 100644 --- a/miltermodule.c +++ b/miltermodule.c @@ -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 -- GitLab