diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-19 09:20:44 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2011-04-19 09:20:44 +0300 |
commit | 9c1b05828a88eff54409760b92162c7cc2c7cff6 (patch) | |
tree | a7369efecb6402b18289d7ea51a6b47f370cdfcd /m4/ax_pthread.m4 | |
parent | Update THANKS. (diff) | |
download | xz-9c1b05828a88eff54409760b92162c7cc2c7cff6.tar.xz |
Fix portability problems in mythread.h.
Use gettimeofday() if clock_gettime() isn't available
(e.g. Darwin).
The test for availability of pthread_condattr_setclock()
and CLOCK_MONOTONIC was incorrect. Instead of fixing the
#ifdefs, use an Autoconf test. That way if there exists a
system that supports them but doesn't specify the matching
POSIX #defines, the features will still get detected.
Don't try to use pthread_sigmask() on OpenVMS. It doesn't
have that function.
Guard mythread.h against being #included multiple times.
Diffstat (limited to 'm4/ax_pthread.m4')
0 files changed, 0 insertions, 0 deletions