From patchwork Fri Dec 8 09:16:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnold Robbins X-Patchwork-Id: 24801 Received: (qmail 96901 invoked by alias); 8 Dec 2017 09:20:30 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 69515 invoked by uid 89); 8 Dec 2017 09:18:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, MANY_HDRS_LCASE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Bracket, HContent-type:text, Hx-spam-relays-external:ESMTPA X-HELO: mxout4.netvision.net.il MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII From: Arnold Robbins Message-id: <201712080916.vB89GxlM005495@skeeve.com> Date: Fri, 08 Dec 2017 11:16:59 +0200 To: carlos@redhat.com, libc-alpha@sourceware.org Subject: [PATCH 03/17] Regex: Bracket call to __libc_lock_define inside ifdef. User-Agent: Heirloom mailx 12.5 6/20/10 This patch brackets a call to __libc_lock_define inside the correct ifdef. 2017-11-27 Arnold D. Robbins * 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))