This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] fnmatch.h: use standard internal defines
- From: Zack Weinberg <zackw at panix dot com>
- To: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sun, 27 Nov 2016 12:46:24 -0500
- Subject: Re: [PATCH] fnmatch.h: use standard internal defines
- Authentication-results: sourceware.org; auth=none
- References: <20161127070410.6029-1-vapier@gentoo.org>
On Sun, Nov 27, 2016 at 2:04 AM, Mike Frysinger <vapier@gentoo.org> wrote:
...
> @@ -47,7 +47,7 @@ extern "C" {
> `fnmatch'. Since this is not the case here it will never be
> returned but the conformance test suites still require the symbol
> to be defined. */
> -#ifdef _XOPEN_SOURCE
> +#ifdef __USE_XOPEN
> # define FNM_NOSYS (-1)
> #endif
As long as we're touching this file,
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/fnmatch.h.html
says FNM_NOSYS was deprecated-XSI in Issue 6 and dropped in Issue 7,
which I *think* means this conditional should be
#if defined __USE_XOPEN && !defined __USE_XOPEN2K8
(I'm not having any luck finding an online copy of Issue 4 - the Open
Group seems to believe nobody needs to look at it anymore.)
zw