zbd: Fix incorrect comments
[fio.git] / oslib / strndup.c
index 7b0fcb516163d29eec0592cb31c867da37b66a09..657904ab64d8044f71cce87b716743a21036186a 100644 (file)
@@ -1,8 +1,9 @@
+#ifndef CONFIG_HAVE_STRNDUP
+
 #include <stdlib.h>
+#include <string.h>
 #include "strndup.h"
 
-#ifndef CONFIG_HAVE_STRNDUP
-
 char *strndup(const char *s, size_t n)
 {
        char *str = malloc(n + 1);