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))