summaryrefslogtreecommitdiff
path: root/libc/misc/regex/regex_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/regex/regex_internal.h')
-rw-r--r--libc/misc/regex/regex_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/misc/regex/regex_internal.h b/libc/misc/regex/regex_internal.h
index 03f08bf52..0a255e37f 100644
--- a/libc/misc/regex/regex_internal.h
+++ b/libc/misc/regex/regex_internal.h
@@ -46,10 +46,14 @@
# include <stdint.h>
#endif
+#ifdef __UCLIBC_HAS_THREADS__
+#include <bits/libc-lock.h>
+#else
#define __libc_lock_define(CLASS, NAME)
#define __libc_lock_init(NAME) do { } while (0)
#define __libc_lock_lock(NAME) do { } while (0)
#define __libc_lock_unlock(NAME) do { } while (0)
+#endif
#undef gettext
#undef gettext_noop