mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
build: various fixes for compiling on macOS
This commit is contained in:
@ -68,9 +68,13 @@ void
|
||||
sysprof_clock_init (void)
|
||||
{
|
||||
static const int clock_ids[] = {
|
||||
#ifdef __APPLE__
|
||||
_CLOCK_MONOTONIC,
|
||||
#else
|
||||
CLOCK_MONOTONIC,
|
||||
CLOCK_MONOTONIC_RAW,
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
CLOCK_MONOTONIC_RAW,
|
||||
CLOCK_MONOTONIC_COARSE,
|
||||
CLOCK_REALTIME_COARSE,
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user