Fixed codes about clock_gettime for osx(2)

This commit is contained in:
Takeshi Nakatani 2016-02-07 08:10:23 +00:00
parent 1c9d7a9ea9
commit 0755c6f60c

View File

@ -46,8 +46,11 @@ using namespace std;
//-------------------------------------------------------------------
// Utility
//-------------------------------------------------------------------
#if defined(CLOCK_MONOTONIC_COARSE)
#define CLOCK_MONOTONIC_COARSE 6
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC CLOCK_REALTIME
#endif
#ifndef CLOCK_MONOTONIC_COARSE
#define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
#endif
#ifndef HAVE_CLOCK_GETTIME