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;hp=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 ---