summaryrefslogtreecommitdiff
path: root/modules/lock
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-05-29 10:24:17 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2013-05-29 10:24:38 -0700
commit55ba71f47850fbd870cb08bac1cf992f1368295e (patch)
tree0cee0ddc976e50cfc404e973077b837fd326c3bd /modules/lock
parente28fbd787cb4861a7848ac6e86c838912b8cd2ec (diff)
downloadgnulib-55ba71f47850fbd870cb08bac1cf992f1368295e.tar.gz
regex: adapt to locking regime instead of depending on pthread
Instead of depending on pthread, adapt to whatever thread modules are in use. Problem reported by Ludovic Courtès in <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00082.html> and by Mats Erik Andersson in <http://lists.gnu.org/archive/html/bug-gnulib/2013-05/msg00100.html>. * lib/regex_internal.h (lock_define, lock_init, lock_fini): Support either the 'lock' module, or the 'pthread' module, or no module. (lock_lock, lock_unlock): New macros. * lib/regexec.c (regexec, re_search_stub): Use the new macros. * modules/lock, modules/pthread (configure.ac): Add module indicator. * modules/regex (Depends-on): Remove pthread.
Diffstat (limited to 'modules/lock')
-rw-r--r--modules/lock1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/lock b/modules/lock
index f7e4c9a9b5..3377915fcf 100644
--- a/modules/lock
+++ b/modules/lock
@@ -11,6 +11,7 @@ threadlib
configure.ac:
gl_LOCK
+gl_MODULE_INDICATOR([lock])
Makefile.am:
lib_SOURCES += glthread/lock.h glthread/lock.c