unnecessary? #warning in sys/ipc.h
Andreas Schwab
schwab@suse.de
Wed Jul 13 14:35:00 GMT 2016
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."
More information about the Libc-alpha
mailing list