Merge branch 'osx_fix' of https://github.com/sitsofe/fio
[fio.git] / oslib / strndup.c
index 318ca933d54b0e5e4cdb09dc32d69ec5f7f0ab8b..657904ab64d8044f71cce87b716743a21036186a 100644 (file)
@@ -1,7 +1,8 @@
+#ifndef CONFIG_HAVE_STRNDUP
+
 #include <stdlib.h>
 #include <string.h>
-
-#ifndef CONFIG_HAVE_STRNDUP
+#include "strndup.h"
 
 char *strndup(const char *s, size_t n)
 {