From 059708286071f19a08145cd58720b0a996c69e37 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 20 Nov 2022 16:15:41 -0500 Subject: [PATCH] configure,rbldnsd.c: include instead of . As far back as 1997, the Single UNIX Specification (that later became POSIX) has said that is the file that provides poll() and friends: https://pubs.opengroup.org/onlinepubs/7908799/xsh/poll.h.html Most implementations also support the old , but musl, for example, raises a warning about its usage: https://git.musl-libc.org/cgit/musl/tree/include/sys/poll.h This commit updates to in two places. Closes: https://github.com/spamhaus/rbldnsd/issues/25 --- configure | 2 +- rbldnsd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 3462b9a..571cbdd 100755 --- a/configure +++ b/configure @@ -222,7 +222,7 @@ fi if ac_link_v "for poll()" < -#include +#include int main() { struct pollfd pfd[2]; return poll(pfd, 2, 10); diff --git a/rbldnsd.c b/rbldnsd.c index 2763577..0e0f156 100644 --- a/rbldnsd.c +++ b/rbldnsd.c @@ -35,7 +35,7 @@ # include #endif #ifndef NO_POLL -# include +# include #endif #ifndef NO_MEMINFO # include