[Toybox] [PATCH] include sys/sysmacros.h

Felix Janda felix.janda at posteo.de
Mon Feb 29 23:45:54 PST 2016


Rich Felker wrote:
...
> > glibc is the process of deprecating, and musl/uClibc would follow suit,
> > if not just drop the include altogether.
> 
> musl has never had the issue. :-) because we don't implicitly include
> sys/sysmacros.h at all. The set of programs that have any use for
> these macros is basically ls, mknod, and archivers (tar, cpio, etc.)
> that support archiving device nodes, and these programs can just
> include the appropriate header to get them.

musl's sys/types.h currently does include sys/sysmacros.h in a
_BSD_SOURCE/_GNU_SOURCE block. (sys/types.h is not implictly included
by stdlib.h, though.)

Felix

 1456818354.0


More information about the Toybox mailing list