From 8e3a5cba8be5c843828df3b06d2e665b6fd32e1c Mon Sep 17 00:00:00 2001 From: DDoSolitary Date: Sun, 28 Apr 2019 08:09:22 +0800 Subject: [PATCH] Use instead of The former should be used according to POSIX, otherwise it causes bunches of warnings when compiling for musl-based distros like Alpine Linux. --- src/dnsmasq.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dnsmasq.h b/src/dnsmasq.h index e06614c..9bf89e6 100644 --- a/src/dnsmasq.h +++ b/src/dnsmasq.h @@ -95,7 +95,11 @@ typedef unsigned long long u64; #if defined(HAVE_SOLARIS_NETWORK) # include #endif -#include +#if defined(HAVE_POLL_H) +# include +#else +# include +#endif #include #include #include