Restore type checking in calc_thread_status()
[fio.git] / oslib / strndup.h
index 669364e435c210ad26090f8129e7a20ae637d712..2f41848ec2d54f5f821050a444239a6d60cb19c5 100644 (file)
@@ -1,9 +1,12 @@
-#ifdef CONFIG_HAVE_STRNDUP
+#ifndef CONFIG_HAVE_STRNDUP
 
-#include <string.h>
+#ifndef FIO_STRNDUP_LIB_H
+#define FIO_STRNDUP_LIB_H
 
-#else
+#include <stddef.h>
 
 char *strndup(const char *s, size_t n);
 
 #endif
+
+#endif