projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Restore type checking in calc_thread_status()
[fio.git]
/
oslib
/
strndup.h
diff --git
a/oslib/strndup.h
b/oslib/strndup.h
index 669364e435c210ad26090f8129e7a20ae637d712..2f41848ec2d54f5f821050a444239a6d60cb19c5 100644
(file)
--- a/
oslib/strndup.h
+++ b/
oslib/strndup.h
@@
-1,9
+1,12
@@
-#ifdef CONFIG_HAVE_STRNDUP
+#if
n
def 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