oslib: make str* compat functions more uniform
[fio.git] / oslib / strndup.h
index 2cb904dab0b76448c59172f80084b9a96075d023..2f41848ec2d54f5f821050a444239a6d60cb19c5 100644 (file)
@@ -1,7 +1,12 @@
-#include <string.h>
-
 #ifndef CONFIG_HAVE_STRNDUP
 
+#ifndef FIO_STRNDUP_LIB_H
+#define FIO_STRNDUP_LIB_H
+
+#include <stddef.h>
+
 char *strndup(const char *s, size_t n);
 
 #endif
+
+#endif