From: Tomohiro Kusumi Date: Fri, 14 Apr 2017 21:06:20 +0000 (+0300) Subject: Make lib/strntol.c a stand-alone library X-Git-Tag: fio-2.20~41 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=2c48ab2efb7397b933d5b7e552da8c8245744c10;ds=inline 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 --- 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) {