From 0c6a3882a27483f0fd9f5196be7cf3e2836f6654 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sun, 28 May 2017 10:04:25 +0000 Subject: [PATCH] Fixed clock_gettime build failure on macOS 10.12 Sierra - #600 --- src/cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.cpp b/src/cache.cpp index 4856d23..e6d3a81 100644 --- a/src/cache.cpp +++ b/src/cache.cpp @@ -59,7 +59,7 @@ using namespace std; #ifdef HAVE_CLOCK_GETTIME static int s3fs_clock_gettime(int clk_id, struct timespec* ts) { - return clock_gettime(clk_id, ts); + return clock_gettime(static_cast(clk_id), ts); } #else static int s3fs_clock_gettime(int clk_id, struct timespec* ts)