From: Tomohiro Kusumi Date: Fri, 14 Apr 2017 21:06:21 +0000 (+0300) Subject: Make lib/pattern.c a stand-alone library X-Git-Tag: fio-2.20~40 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=fada2fcd693a2c7fde5ebd36ff9255b549b102ab;ds=sidebyside Make lib/pattern.c a stand-alone library lib/pattern.c not having dependency on fio.h enables it to be a stand-alone library, which is useful for debugging purpose. In fact, most of the files under lib/ directory do things this way. This requires the previous commit. -- # cat ./test6.c #include #include "lib/pattern.h" int main(void) { /* just to see if it compiles */ paste_format_inplace(NULL, 0, NULL, 0, NULL); return 0; } # gcc -Wall -g ./test6.c ./lib/pattern.c ./lib/strntol.c Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- diff --git a/lib/pattern.c b/lib/pattern.c index b8ae8090..0aeb9352 100644 --- a/lib/pattern.c +++ b/lib/pattern.c @@ -1,6 +1,13 @@ -#include "fio.h" +#include +#include +#include +#include +#include +#include + #include "strntol.h" #include "pattern.h" +#include "../minmax.h" #include "../oslib/strcasestr.h" /**