From a05adf95d2af6abb2b7826ddaa7a0ec0cdc1726b Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Wed, 4 Mar 2015 00:55:48 -0800 Subject: [PATCH] netcat needs poll.h portability goop --- regress/netcat.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/regress/netcat.c b/regress/netcat.c index 6be6e054f..1a9fc8730 100644 --- a/regress/netcat.c +++ b/regress/netcat.c @@ -46,7 +46,6 @@ #include #include -#include #include #include #include @@ -56,6 +55,14 @@ #include #include "atomicio.h" +#ifdef HAVE_POLL_H +#include +#else +# ifdef HAVE_SYS_POLL_H +# include +# endif +#endif + #ifndef SUN_LEN #define SUN_LEN(su) \ (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))