From 871cc5f9874c3a4b9c8f113f0cb9079745a7e840 Mon Sep 17 00:00:00 2001 From: Jonathan Wiepert Date: Tue, 16 Feb 2016 12:16:47 -0800 Subject: [PATCH] fix build without gflags Test Plan: Built and ran with gflags: % ./db_bench LevelDB: version 4.5 Date: Tue Feb 16 12:04:23 2016 CPU: 40 * Intel(R) Xeon(R) CPU E5-2660 v2 @ 2.20GHz ... And without gflags: % ./db_bench Please install gflags to run rocksdb tools % Reviewers: sdong, igor Reviewed By: igor Subscribers: igor, dhruba Differential Revision: https://reviews.facebook.net/D54243 --- tools/db_bench_tool.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/db_bench_tool.cc b/tools/db_bench_tool.cc index 26c9f38e1..65ce703f1 100644 --- a/tools/db_bench_tool.cc +++ b/tools/db_bench_tool.cc @@ -11,6 +11,7 @@ #define __STDC_FORMAT_MACROS #endif +#ifdef GFLAGS #ifdef NUMA #include #include @@ -4132,3 +4133,4 @@ int db_bench_tool(int argc, char** argv) { return 0; } } // namespace rocksdb +#endif