diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2008-08-28 22:00:46 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2008-08-28 22:00:46 +0000 |
commit | 1cd8b853ba9b8c120ba47182845f62bf2fd1788d (patch) | |
tree | 1b4bef67feb9a3af020efb250c9a31004e4230e5 /gcc/gthr-posix.c | |
parent | d6d3e623f2fc96c7d4dd9405a2c67167f97dfcec (diff) | |
download | gcc-1cd8b853ba9b8c120ba47182845f62bf2fd1788d.zip gcc-1cd8b853ba9b8c120ba47182845f62bf2fd1788d.tar.gz gcc-1cd8b853ba9b8c120ba47182845f62bf2fd1788d.tar.bz2 |
gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix rule that a symbolic constant...
2008-08-28 Paolo Carlini <paolo.carlini@oracle.com>
* gtrh-posix.h: Fix uses of _POSIX_TIMEOUTS per the normal Posix
rule that a symbolic constant must be defined and >= 0 for the
corresponding facility to be present at compile-time.
* gthr-posix.c: Likewise.
From-SVN: r139739
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 bfcd316..154fc33 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 |