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:
Ignacio R. Morelle 2015-07-21 22:00:53 -03:00
parent 34647a3446
commit d35082e9e8

View file

@ -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;