projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
configure: check for gtk version using pkg-config
[fio.git]
/
oslib
/
strndup.c
diff --git
a/oslib/strndup.c
b/oslib/strndup.c
index 7b0fcb516163d29eec0592cb31c867da37b66a09..657904ab64d8044f71cce87b716743a21036186a 100644
(file)
--- a/
oslib/strndup.c
+++ b/
oslib/strndup.c
@@
-1,8
+1,9
@@
+#ifndef 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);