Fix mac compile

Summary: as title

Test Plan: make check

Reviewers: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D40785
main
Igor Canadi 10 years ago
parent 472e64d39e
commit 619167ee66
  1. 7
      tools/dump/rocksdb_dump.cc

@ -11,6 +11,11 @@ int main() {
} }
#else #else
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#include <inttypes.h>
#include <gflags/gflags.h> #include <gflags/gflags.h>
#include <iostream> #include <iostream>
@ -87,7 +92,7 @@ int main(int argc, char** argv) {
status = env->GetAbsolutePath(argv[1], &abspath); status = env->GetAbsolutePath(argv[1], &abspath);
snprintf(json, sizeof(json), snprintf(json, sizeof(json),
"{ \"database-path\": \"%s\", \"hostname\": \"%s\", " "{ \"database-path\": \"%s\", \"hostname\": \"%s\", "
"\"creation-time\": %ld }", "\"creation-time\": %" PRIi64 " }",
abspath.c_str(), hostname, timesec); abspath.c_str(), hostname, timesec);
} }

Loading…
Cancel
Save