From 8fe3360c3550f96b2b73ef8b36b5a77a760f8f8c Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 2 Oct 2014 02:53:35 +0200 Subject: [PATCH] fix clock_gettime detection fixes compilation with mingw64 gcc-4.9.1 --- libs/pbd/file_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/file_manager.cc b/libs/pbd/file_manager.cc index 4bc6974f4d..702c1e1b8f 100644 --- a/libs/pbd/file_manager.cc +++ b/libs/pbd/file_manager.cc @@ -118,7 +118,7 @@ FileManager::allocate (FileDescriptor* d) #ifdef __APPLE__ d->_last_used = mach_absolute_time(); -#elif defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) +#elif defined(_POSIX_TIMERS) && defined(_POSIX_MONOTONIC_CLOCK) && (_POSIX_C_SOURCE >= 199309L) struct timespec t; clock_gettime (CLOCK_MONOTONIC, &t); d->_last_used = t.tv_sec + (double) t.tv_nsec / 10e9;