This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: unnecessary? #warning in sys/ipc.h


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]