summaryrefslogtreecommitdiffstats
path: root/sysdep
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 6e1952e..9a38844 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -8,6 +8,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -216,6 +217,10 @@ tm_shot(void)
* Sockets
*/
+#ifndef SOL_IP
+#define SOL_IP IPPROTO_IP
+#endif
+
static list sock_list;
static void