Fix mac compile
Summary: as title Test Plan: make check Reviewers: sdong Subscribers: dhruba, leveldb Differential Revision: https://reviews.facebook.net/D40785
This commit is contained in:
parent
472e64d39e
commit
619167ee66
@ -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>
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user