From patchwork Fri Dec 8 09:19:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnold Robbins X-Patchwork-Id: 24799 Received: (qmail 97476 invoked by alias); 8 Dec 2017 09:21:21 -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 96919 invoked by uid 89); 8 Dec 2017 09:20:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.5 required=5.0 tests=AWL, 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=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: <201712080919.vB89JOau005651@skeeve.com> Date: Fri, 08 Dec 2017 11:19:24 +0200 To: carlos@redhat.com, libc-alpha@sourceware.org Subject: [PATCH 16/17] Regex: Define __USE_GNU for non-GLIBC systems. User-Agent: Heirloom mailx 12.5 6/20/10 This patch defines __USE_GNU for non-GLIBC systems. For example, *BSD need it. 2017-12-05 Arnold D. Robbins * posix/regex.h: Define __USE_GNU if not _LIBC. Needed when regex is being used standalone on non-GLIBC systems. diff --git a/posix/regex.h b/posix/regex.h index 8970e37..a3f41b5 100644 --- a/posix/regex.h +++ b/posix/regex.h @@ -22,6 +22,10 @@ #include +#ifndef _LIBC +#define __USE_GNU 1 +#endif + /* Allow the use in C++ code. */ #ifdef __cplusplus extern "C" {