aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sendf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sendf.c b/lib/sendf.c
index ae4ce6737..ad144edd8 100644
--- a/lib/sendf.c
+++ b/lib/sendf.c
@@ -26,6 +26,9 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> /* required for send() & recv() prototypes */