--- a/soccon.c
+++ b/soccon.c
@@ -10,6 +10,7 @@
 #include <arpa/inet.h>
 #include <sys/un.h>
 #include <unistd.h>
+#include <string.h>
 
 int sockconnect_unix(const char *fname)
 {
--- a/sockopen.c
+++ b/sockopen.c
@@ -11,6 +11,7 @@
 #include <sys/stat.h>
 #include <sys/un.h>
 #include <syslog.h>
+#include <string.h>
 
 int sockopen_unix(const char *fname)
 {
