campaignd: Don't try to use a monotonic clock on Windows
Fixes linker errors about clock_gettime not being resolved for some reason, at least when crosscompiling from Linux using MinGW-w64.
This commit is contained in:
parent
34647a3446
commit
d35082e9e8
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ void exit_sigterm(int signal)
|
|||
|
||||
time_t monotonic_clock()
|
||||
{
|
||||
#ifdef _POSIX_MONOTONIC_CLOCK
|
||||
#if defined(_POSIX_MONOTONIC_CLOCK) && !defined(_WIN32)
|
||||
timespec ts;
|
||||
clock_gettime(CLOCK_MONOTONIC, &ts);
|
||||
return ts.tv_sec;
|
||||
|
|
Loading…
Add table
Reference in a new issue