mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
libreplace: use CLOCK_HIGHRES when available
in Solaris 8 CLOCK_HIGHRES was the (only) name for CLOCK_MONOTONIC
This commit is contained in:
parent
33da33c59e
commit
9c00fb4aa6
@ -73,10 +73,12 @@ typedef int clockid_t;
|
||||
int rep_clock_gettime(clockid_t clk_id, struct timespec *tp);
|
||||
#endif
|
||||
/* make sure we have a best effort CUSTOM_CLOCK_MONOTONIC we can rely on */
|
||||
#ifndef CLOCK_MONOTONIC
|
||||
#define CUSTOM_CLOCK_MONOTONIC CLOCK_REALTIME
|
||||
#else
|
||||
#if defined(CLOCK_MONOTONIC)
|
||||
#define CUSTOM_CLOCK_MONOTONIC CLOCK_MONOTONIC
|
||||
#elif defined(CLOCK_HIGHRES)
|
||||
#define CUSTOM_CLOCK_MONOTONIC CLOCK_HIGHRES
|
||||
#else
|
||||
#define CUSTOM_CLOCK_MONOTONIC CLOCK_REALTIME
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user