summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
Diffstat (limited to 'regress')
-rw-r--r--regress/netcat.c9
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 @@
46 46
47#include <errno.h> 47#include <errno.h>
48#include <netdb.h> 48#include <netdb.h>
49#include <poll.h>
50#include <stdarg.h> 49#include <stdarg.h>
51#include <stdio.h> 50#include <stdio.h>
52#include <stdlib.h> 51#include <stdlib.h>
@@ -56,6 +55,14 @@
56#include <limits.h> 55#include <limits.h>
57#include "atomicio.h" 56#include "atomicio.h"
58 57
58#ifdef HAVE_POLL_H
59#include <poll.h>
60#else
61# ifdef HAVE_SYS_POLL_H
62# include <sys/poll.h>
63# endif
64#endif
65
59#ifndef SUN_LEN 66#ifndef SUN_LEN
60#define SUN_LEN(su) \ 67#define SUN_LEN(su) \
61 (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path)) 68 (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))