diff options
author | Damien Miller <djm@mindrot.org> | 2015-03-04 09:55:48 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2015-03-04 20:00:35 +0100 |
commit | a05adf95d2af6abb2b7826ddaa7a0ec0cdc1726b (patch) | |
tree | 00b28ec48733b714e635f4426549c67316d60efb /regress/netcat.c | |
parent | upstream commit (diff) | |
download | openssh-a05adf95d2af6abb2b7826ddaa7a0ec0cdc1726b.tar.xz openssh-a05adf95d2af6abb2b7826ddaa7a0ec0cdc1726b.zip |
netcat needs poll.h portability goop
Diffstat (limited to 'regress/netcat.c')
-rw-r--r-- | regress/netcat.c | 9 |
1 files changed, 8 insertions, 1 deletions
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 <errno.h> #include <netdb.h> -#include <poll.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> @@ -56,6 +55,14 @@ #include <limits.h> #include "atomicio.h" +#ifdef HAVE_POLL_H +#include <poll.h> +#else +# ifdef HAVE_SYS_POLL_H +# include <sys/poll.h> +# endif +#endif + #ifndef SUN_LEN #define SUN_LEN(su) \ (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) |