Fixed clock_gettime build failure on macOS 10.12 Sierra - #600

This commit is contained in:
Takeshi Nakatani 2017-05-28 10:04:25 +00:00
parent a08880ae15
commit 0c6a3882a2

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)