From 8604ba2c938aa97abbeff3a4615c30f04507092b Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sat, 15 Apr 2017 00:06:25 +0300 Subject: [PATCH] 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 --- oslib/strlcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.25.1