diff options
Diffstat (limited to 'src/semaphore.cc')
-rw-r--r-- | src/semaphore.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/semaphore.cc b/src/semaphore.cc index fc27709..3c321fa 100644 --- a/src/semaphore.cc +++ b/src/semaphore.cc @@ -107,7 +107,7 @@ bool Semaphore::wait(const std::chrono::milliseconds& timeout) #if DG_PLATFORM == DG_PLATFORM_LINUX // Get current time clock_gettime(CLOCK_REALTIME, &ts); -#elif DG_POSIX +#elif defined(DG_POSIX) struct timeval now; int rv = gettimeofday(&now, NULL); |