From: Tomohiro Kusumi Date: Fri, 14 Apr 2017 21:06:25 +0000 (+0300) Subject: Make oslib/strlcat.c a stand-alone library X-Git-Tag: fio-2.20~36 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=8604ba2c938aa97abbeff3a4615c30f04507092b Make oslib/strlcat.c a stand-alone library It needs to include strlcat.h from local directory where strlcat.c is also located, to be able to use this as a stand-alone library, which is useful for debugging purpose. In fact, most of the files under oslib/ directory do things this way. -- # cat ./test9.c #include #include "oslib/strlcat.h" int main(void) { /* just to see if it compiles */ strlcat(NULL, NULL, 0); return 0; } # gcc -Wall -g ./test9.c ./oslib/strlcat.c Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/oslib/strlcat.c b/oslib/strlcat.c index 3329b833..3b33d0eb 100644 --- a/oslib/strlcat.c +++ b/oslib/strlcat.c @@ -1,5 +1,5 @@ #include -#include "oslib/strlcat.h" +#include "strlcat.h" size_t strlcat(char *dst, const char *src, size_t size) {