This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: unnecessary? #warning in sys/ipc.h
- From: Andreas Schwab <schwab at suse dot de>
- To: Zack Weinberg <zackw at panix dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 13 Jul 2016 16:35:17 +0200
- Subject: Re: unnecessary? #warning in sys/ipc.h
- Authentication-results: sourceware.org; auth=none
- References: <CAKCAbMhDzEc7a8sCqFjzyQ2iZ260qRdOOSfX1W3n6X2UNyNV8Q@mail.gmail.com>
Zack Weinberg <zackw@panix.com> writes:
> sysvipc/sys/ipc.h contains this:
>
> #if !defined __USE_MISC && !defined __USE_XOPEN && __GNUC__ >= 2
> # warning "Files using this header must be compiled with _GNU_SOURCE
> or _XOPEN_SOURCE"
> #endif
>
> It was added in 1998 (219aa9e9f9677e2f50095433ca233abdef23a6b0). with
> no explanation, and as far as I can tell, is completely unnecessary;
Not in 1997, when key_t was only defined with _SVID_SOURCE or
_XOPEN_SOURCE.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."