mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
57fd59b73b
This commit adds a number of changes to platform-detection and compile-time directives required to support building ClickHouse on Solaris-derived systems, most notably illumos.
10 lines
220 B
C++
10 lines
220 B
C++
#pragma once
|
|
|
|
#include <time.h>
|
|
|
|
#if defined (OS_DARWIN) || defined (OS_SUNOS)
|
|
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC
|
|
#elif defined (OS_FREEBSD)
|
|
# define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC_FAST
|
|
#endif
|