From ad8b6a2f4deb531ebb9a74e2dfd206bf10bd73c6 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sat, 15 Apr 2017 00:06:22 +0300 Subject: [PATCH] Make lib/rand.c a stand-alone library It needs to include pattern.h from local directory where rand.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 ./test7.c #include #include "lib/rand.h" int main(void) { /* just to see if it compiles */ init_rand(NULL, 0); return 0; } # gcc -Wall -g -DBITS_PER_LONG=64 ./test7.c ./lib/rand.c ./lib/pattern.c ./lib/strntol.c Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- lib/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rand.c b/lib/rand.c index 9c3e0d6a..3f60a67a 100644 --- a/lib/rand.c +++ b/lib/rand.c @@ -36,7 +36,7 @@ #include #include #include "rand.h" -#include "lib/pattern.h" +#include "pattern.h" #include "../hash.h" int arch_random; -- 2.25.1