Skip to content

Commit

Permalink
Fix mac compile
Browse files Browse the repository at this point in the history
Summary: as title

Test Plan: make check

Reviewers: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D40785
  • Loading branch information
igorcanadi committed Jun 26, 2015
1 parent 472e64d commit 619167e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/dump/rocksdb_dump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ int main() {
}
#else

#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif

#include <inttypes.h>
#include <gflags/gflags.h>
#include <iostream>

Expand Down Expand Up @@ -87,7 +92,7 @@ int main(int argc, char** argv) {
status = env->GetAbsolutePath(argv[1], &abspath);
snprintf(json, sizeof(json),
"{ \"database-path\": \"%s\", \"hostname\": \"%s\", "
"\"creation-time\": %ld }",
"\"creation-time\": %" PRIi64 " }",
abspath.c_str(), hostname, timesec);
}

Expand Down

0 comments on commit 619167e

Please sign in to comment.