Fix Rocksdb lite build failure in forward_iterator_bench

Summary:
Fixed Rocksdb lite build failure in forward_iterator_bench by
defining main for the ROCKSDB_LITE case

Test Plan: build ROCKSDB_LITE

Reviewers: anthony, yhchiang, IslamAbdelRahman, sdong

Reviewed By: sdong

Subscribers: dhruba

Differential Revision: https://reviews.facebook.net/D50733
This commit is contained in:
Venkatesh Radhakrishnan 2015-11-16 09:57:08 -08:00
parent 7824444bfc
commit d06b63e99f

View File

@ -7,15 +7,13 @@
#define __STDC_FORMAT_MACROS
#endif
#ifndef GFLAGS
#if !defined(GFLAGS) || defined(ROCKSDB_LITE)
#include <cstdio>
int main() {
fprintf(stderr, "Please install gflags to run rocksdb tools\n");
return 1;
}
#else
#ifndef ROCKSDB_LITE
#include <gflags/gflags.h>
#include <semaphore.h>
#include <atomic>
@ -369,7 +367,4 @@ int main(int argc, char** argv) {
writers.clear();
readers.clear();
}
#endif // ROCKSDB_LITE
#endif // GFLAGS
#endif // !defined(GFLAGS) || defined(ROCKSDB_LITE)