diff options
Diffstat (limited to 'examples/sshnetcat.c')
-rw-r--r-- | examples/sshnetcat.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/sshnetcat.c b/examples/sshnetcat.c index 19f6500a..052cabf4 100644 --- a/examples/sshnetcat.c +++ b/examples/sshnetcat.c @@ -13,10 +13,14 @@ clients must be made or how a client should react. #include "config.h" #include <stdio.h> -#include <unistd.h> #include <stdlib.h> #include <string.h> +#ifdef HAVE_TERMIOS_H #include <termios.h> +#endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif #include <sys/select.h> #include <sys/time.h> |