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: [PATCH] Make sys/timerfd.h usable without __USE_POSIX199309


On Sat, Oct 15, 2011 at 02:46, Jonathan Nieder <jrnieder@gmail.com> wrote:
> Jonathan Nieder wrote:
>
>> How about this patch?

It's wrong.  You're using a non-standard header which ideally would
not make anything available unless you select _GNU_SOURCE (or some
_BSD_SOURCE etc, but in this case the file is not of that origin).

It's just not worth it to add all these extra #ifdefs.  Programmers
have to realize that without any _*_SOURCE macros defined the default
environment is ISO C and then you must not include any system headers
other than the standard headers.

Fix the relevant code that has problems.


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