[PATCH] Make sys/timerfd.h usable without __USE_POSIX199309

Ulrich Drepper drepper@gmail.com
Sun Oct 16 14:45:00 GMT 2011


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.



More information about the Libc-alpha mailing list