This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 03/17] Regex: Bracket call to __libc_lock_define inside ifdef.


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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]