Merge pull request #611 from ggtakec/master

Fixed clock_gettime build failure on macOS 10.12 Sierra - #600
This commit is contained in:
Takeshi Nakatani 2017-05-28 19:15:45 +09:00 committed by GitHub
commit 620f6ec616

View File

@ -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<clockid_t>(clk_id), ts);
}
#else
static int s3fs_clock_gettime(int clk_id, struct timespec* ts)