Index: src/socket.c
--- src/socket.c.orig
+++ src/socket.c
@@ -34,6 +34,7 @@
 #include <assert.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 #include <fcntl.h>
 
 #ifdef _WIN32
