util: Fix strndup prototype on C++.
[mesa.git] / src / util / strndup.c
index 2c24d3789c2fd99fa974d9f2bb58dfde6387784f..ca1c6f53b575bb5e722944c568952c08df9680cd 100644 (file)
@@ -23,6 +23,7 @@
 
 #if defined(_WIN32)
 #include <stdlib.h>
+#include <string.h>
 #include "strndup.h"
 
 char *