diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-05-07 13:37:19 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-05-07 13:37:19 +0300 |
commit | 6f5c5d212df15586e3aab33fbea64ac665b7c3f4 (patch) | |
tree | 85f8248c8a94f88de7d9c102668e09a3a22a9ec9 /support/regex_internal.h | |
parent | 0791273b7440635339a87d25e1b433747d59bc64 (diff) | |
download | egawk-6f5c5d212df15586e3aab33fbea64ac665b7c3f4.tar.gz egawk-6f5c5d212df15586e3aab33fbea64ac665b7c3f4.tar.bz2 egawk-6f5c5d212df15586e3aab33fbea64ac665b7c3f4.zip |
Really sync from GNULIB this time.
Diffstat (limited to 'support/regex_internal.h')
-rw-r--r-- | support/regex_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/support/regex_internal.h b/support/regex_internal.h index 4b0a3efb..1245e782 100644 --- a/support/regex_internal.h +++ b/support/regex_internal.h @@ -53,14 +53,14 @@ # define lock_fini(lock) ((void) 0) # define lock_lock(lock) __libc_lock_lock (lock) # define lock_unlock(lock) __libc_lock_unlock (lock) -#elif defined GNULIB_LOCK && !defined USE_UNLOCKED_IO +#elif defined GNULIB_LOCK && !defined GNULIB_REGEX_SINGLE_THREAD # include "glthread/lock.h" # define lock_define(name) gl_lock_define (, name) # define lock_init(lock) glthread_lock_init (&(lock)) # define lock_fini(lock) glthread_lock_destroy (&(lock)) # define lock_lock(lock) glthread_lock_lock (&(lock)) # define lock_unlock(lock) glthread_lock_unlock (&(lock)) -#elif defined GNULIB_PTHREAD && !defined USE_UNLOCKED_IO +#elif defined GNULIB_PTHREAD && !defined GNULIB_REGEX_SINGLE_THREAD # include <pthread.h> # define lock_define(name) pthread_mutex_t name; # define lock_init(lock) pthread_mutex_init (&(lock), 0) |