diff options
Diffstat (limited to 'gcc/gthr-posix.c')
-rw-r--r-- | gcc/gthr-posix.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gthr-posix.c b/gcc/gthr-posix.c index bfcd316de30..154fc339416 100644 --- a/gcc/gthr-posix.c +++ b/gcc/gthr-posix.c @@ -112,12 +112,14 @@ pthread_mutex_trylock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED) } #ifdef _POSIX_TIMEOUTS +#if _POSIX_TIMEOUTS >= 0 int pthread_mutex_timedlock (pthread_mutex_t *mutex ATTRIBUTE_UNUSED, const struct timespec *abs_timeout ATTRIBUTE_UNUSED) { return 0; } +#endif #endif /* _POSIX_TIMEOUTS */ int |