From bcdb1a5e8caa5dc7254a58b08677b399ac4e6666 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 21 May 2016 19:37:18 +0200 Subject: Use platform in semaphore. --- src/semaphore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3