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

Arnold Robbins arnold@skeeve.com
Fri Dec 8 09:21:00 GMT 2017


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



More information about the Libc-alpha mailing list