X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=oslib%2Fstrndup.c;fp=oslib%2Fstrndup.c;h=657904ab64d8044f71cce87b716743a21036186a;hb=5d413e0897fee7c2bf10d9ecc0860d3b399d66d5;hp=40e92f820d12b1279e35a94739dde78f16746fa6;hpb=8393ca93334319f066ce6abb44d0f4b4921abbe1;p=fio.git diff --git a/oslib/strndup.c b/oslib/strndup.c index 40e92f82..657904ab 100644 --- a/oslib/strndup.c +++ b/oslib/strndup.c @@ -1,9 +1,9 @@ -#include +#ifndef CONFIG_HAVE_STRNDUP +#include +#include #include "strndup.h" -#ifndef CONFIG_HAVE_STRNDUP - char *strndup(const char *s, size_t n) { char *str = malloc(n + 1);