diff --git a/tests/libtest/test.h b/tests/libtest/test.h
index a0d430842965b4f223a8c1804a05bf083d67495b..1e5b67c96780447546cdb8beac4dbecf6ddfbe62 100644
--- a/tests/libtest/test.h
+++ b/tests/libtest/test.h
@@ -1,5 +1,6 @@
 #include <curl.h>
 #include <stdio.h>
+#include <string.h>
 
 extern char *arg2; /* set by first.c to the argv[2] or NULL */