From: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> OpenBSD has below compiler error due to RB_ROOT name conflict between lib/rbtree.h and OpenBSD header. os/os-{net,open}bsd.h actually have had a workaround for this by undefing their RB_XXX macros (which fio doesn't use) for possible conflicts, but then "lib/rbtree.h" needs to be included after os/os.h which includes os/os-openbsd.h. t/dedupe.c: In function 'main': t/dedupe.c:583: error: 'RB_ROOT' undeclared (first use in this function) t/dedupe.c:583: error: (Each undeclared identifier is reported only once t/dedupe.c:583: error: for each function it appears in.) Signed-off-by: Tomohiro Kusumi <tkusumi@xxxxxxxxxx> --- t/dedupe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/dedupe.c b/t/dedupe.c index c0e9a69..1f172a2 100644 --- a/t/dedupe.c +++ b/t/dedupe.c @@ -14,7 +14,6 @@ #include <fcntl.h> #include <string.h> -#include "../lib/rbtree.h" #include "../flist.h" #include "../log.h" #include "../mutex.h" @@ -25,6 +24,7 @@ #include "../os/os.h" #include "../gettime.h" #include "../fio_time.h" +#include "../lib/rbtree.h" #include "../lib/bloom.h" #include "debug.h" -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html