--- a/src/utils/closefrom.cpp
+++ b/src/utils/closefrom.cpp
@@ -47,6 +47,7 @@
 #include <stdio.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <string.h>
 #include <sys/param.h>
 
 /* #define DEBUG_CLOSEFROM*/