Re: [hackers] [PATCH] [sbase] Include sysmacros.h directly rather than types.h

From: David Phillips <david_AT_sighup.nz>
Date: Mon, 2 Jul 2018 23:02:12 +1200

On Mon, Jul 02, 2018 at 10:16:50AM +0200, Quentin Rameau wrote:
> > On glibc, major, minor, and makedev are all defined in
> > sys/sysmacros.h with types.h only including this for historical
> > reasons. A future release of glibc will remove this behaviour,
> > meaning that major, minor, and makedev will no longer be defined
> > for us without including sysmacros.h.
>
> Could you link to the source of that information?
>
> Thanks.

Sure thing. See the changelog for glibc-2.25 [1]. The manpage for
these functions aas provided by my current version of glibc (2.27)
says that the inclusion of sysmacros.h from types.h will be removed
by 2.28 (cannot find an alternative source for that at the moment).

Thanks,
David

[1]: https://sourceware.org/ml/libc-alpha/2017-02/msg00079.html
Received on Mon Jul 02 2018 - 13:02:12 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 02 2018 - 13:12:24 CEST