diff --git a/sys.c b/sys.c
index 60d496d02a60d46a90880926ca1a79ffe46dfb05..9f0c1557ff5d21435e427e0621b942901144ca95 100644
--- a/sys.c
+++ b/sys.c
@@ -14,6 +14,7 @@
 #include <stdlib.h>
 #include <signal.h>
 #include <setjmp.h>
+#include <string.h>
 
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>