From 2c48ab2efb7397b933d5b7e552da8c8245744c10 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sat, 15 Apr 2017 00:06:20 +0300 Subject: [PATCH] Make lib/strntol.c a stand-alone library It needs to include strntol.h from local directory where strntol.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 lib/ directory do things this way. -- # cat ./test5.c #include #include "lib/strntol.h" int main(void) { /* just to see if it compiles */ strntol(NULL, 0, NULL, 0); return 0; } # gcc -Wall -g ./test5.c ./lib/strntol.c Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- lib/strntol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/strntol.c b/lib/strntol.c index adf45bd4..f622c8dc 100644 --- a/lib/strntol.c +++ b/lib/strntol.c @@ -2,7 +2,7 @@ #include #include -#include "lib/strntol.h" +#include "strntol.h" long strntol(const char *str, size_t sz, char **end, int base) { -- 2.25.1