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: RFC: remove <sys/sysmacros.h> from <sys/types.h>


On Sat, Nov 14, 2015 at 4:18 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Roland McGrath <roland@hack.frob.com> writes:
>
>> What do the modern BSDs do about this issue?
>
> Nothing, they have the same problem.
>
> https://svnweb.freebsd.org/base/head/sys/sys/types.h?view=markup#l356
>
> (__BSD_VISIBLE is the equivalent of __USE_BSD.)

However, if I'm reading these headers correctly, FreeBSD does *not*
include sys/types.h in stdlib.h.  (It does include sys/_types.h but I
think that's their equivalent of bits/types.h - nothing but __names.)
Perhaps that is a lower-risk change for us.  I am going to talk to the
people who do Debian archive rebuilds about trying both possibilities.

(If we still had it, this might be an appropriate thing to put under
__FAVOR_BSD, but I see it's gone, and it doesn't seem important enough
to resurrect it for.)

zw


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