Hi, the following patch is a fix to the use of <sys/poll.h>, modern POSIX systems specify poll(2) as being defined in <poll.h>. This might break some ancient systems (eg. SVR4), but it fixes some newer "legacy-free" configurations (eg. musl libc).
Martin ---cut here--- >From 064f4047932b48e760a667b43a46690301851c4e Mon Sep 17 00:00:00 2001 From: Martin Lucina <[email protected]> Date: Thu, 9 Jan 2014 10:59:23 +0100 Subject: [PATCH] poll(2) is defined in <poll.h> <sys/poll.h> is deprecated, poll(2) is defined in <poll.h> in POSIX2. This is needed for musl libc which does not provide <sys/poll.h>. --- polipo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polipo.h b/polipo.h index fcafe31..2a2d2d9 100644 --- a/polipo.h +++ b/polipo.h @@ -54,7 +54,7 @@ THE SOFTWARE. #include <netdb.h> #include <sys/types.h> #include <sys/uio.h> -#include <sys/poll.h> +#include <poll.h> #include <sys/wait.h> #include <sys/ioctl.h> #include <signal.h> -- 1.7.10.4 ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Polipo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/polipo-users
