projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
oslib: make str* compat functions more uniform
[fio.git]
/
oslib
/
strndup.c
diff --git
a/oslib/strndup.c
b/oslib/strndup.c
index 40e92f820d12b1279e35a94739dde78f16746fa6..657904ab64d8044f71cce87b716743a21036186a 100644
(file)
--- a/
oslib/strndup.c
+++ b/
oslib/strndup.c
@@
-1,9
+1,9
@@
-#i
nclude <stdlib.h>
+#i
fndef 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);