diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-21 19:37:18 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-05-21 19:37:18 +0200 |
commit | bcdb1a5e8caa5dc7254a58b08677b399ac4e6666 (patch) | |
tree | 2846229b49e4af909e65aba9550b6673971ee407 /src/semaphore.cc | |
parent | f699e7c1f1138d896b4abfa90984567d16f221fe (diff) |
Use platform in semaphore.
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); |