This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 03/17] Regex: Bracket call to __libc_lock_define inside ifdef.
- From: Arnold Robbins <arnold at skeeve dot com>
- To: carlos at redhat dot com, libc-alpha at sourceware dot org
- Date: Fri, 08 Dec 2017 11:16:59 +0200
- Subject: [PATCH 03/17] Regex: Bracket call to __libc_lock_define inside ifdef.
- Authentication-results: sourceware.org; auth=none
This patch brackets a call to __libc_lock_define inside the correct ifdef.
2017-11-27 Arnold D. Robbins <arnold@skeeve.com>
* posix/regex_internal.h (re_dfa_t): Bracket call to
__libc_lock_define insidef ifdef _LIBC.
diff --git a/posix/regex_internal.h b/posix/regex_internal.h
index 79e438a..e9cc2b6 100644
--- a/posix/regex_internal.h
+++ b/posix/regex_internal.h
@@ -639,7 +639,9 @@ struct re_dfa_t
#ifdef DEBUG
char* re_str;
#endif
+#if defined _LIBC
__libc_lock_define (, lock)
+#endif
};
#define re_node_set_init_empty(set) memset (set, '\0', sizeof (re_node_set))