summaryrefslogtreecommitdiff
path: root/src/lib/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/net')
-rw-r--r--src/lib/net/buffers_net.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/net/buffers_net.c b/src/lib/net/buffers_net.c
index 576dc56a52..a4c0aca3b5 100644
--- a/src/lib/net/buffers_net.c
+++ b/src/lib/net/buffers_net.c
@@ -21,7 +21,10 @@
#endif
#include <stdlib.h>
+
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#ifdef PARANOIA
/** Helper: If PARANOIA is defined, assert that the buffer in local variable