diff options
author | Bruno Haible <bruno@clisp.org> | 2019-07-15 02:36:13 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-07-15 02:36:13 +0200 |
commit | c1c1d4f6239eece0857e8c6465e92c0806a7c147 (patch) | |
tree | 893d450b4f2d7093a61939589065b9a865dc17cb /modules/pthread_mutex_timedlock | |
parent | 3fdb19cf7a5c3c4ada691fdb9d8e01701c747298 (diff) | |
download | gnulib-c1c1d4f6239eece0857e8c6465e92c0806a7c147.tar.gz |
pthread-h: New module.
* lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
is 1.
* m4/pthread_h.m4: Renamed from m4/pthread.m4.
(gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
<pthread.h> pollutes the namespace; instead, prepare for generating a
pthread.h always. Substitute HAVE_PTHREAD_H here.
(gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
* modules/pthread-h: New file, based on modules/pthread.
* modules/pthread: Rely on 'pthread-h'.
* m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
Update.
* modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
pthread.
Diffstat (limited to 'modules/pthread_mutex_timedlock')
-rw-r--r-- | modules/pthread_mutex_timedlock | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pthread_mutex_timedlock b/modules/pthread_mutex_timedlock index 2ae39f497e..4e01c30337 100644 --- a/modules/pthread_mutex_timedlock +++ b/modules/pthread_mutex_timedlock @@ -6,7 +6,7 @@ lib/pthread_mutex_timedlock.c m4/pthread_mutex_timedlock.m4 Depends-on: -pthread +pthread-h nanosleep [test $HAVE_PTHREAD_T = 1 && test $HAVE_PTHREAD_MUTEX_TIMEDLOCK = 0] configure.ac: |