get_header_tar.c: makedev [PATCH]

Rob Landley rob at landley.net
Thu Sep 29 03:32:19 UTC 2005


On Wednesday 28 September 2005 20:07, Shaun Jackman wrote:
> The crux of the matter is that there's no "correct" #include for
> makedev. I am unable to find makedev referenced in any standard. The
> header sys/types.h is almost certainly the wrong place though; it is
> quite well defined by various standards. I've included a response from
> the newlib mailing list after this mail for reference. However, if you
> don't like the #ifdef makedev, I would simply include sys/sysmacros.h
> unconditionally.

I just checked and uClibc-0.9.28 also has makedev in sys/sysmacros.h, so 
#include that unconditionally.  (If it works on glibc, uClibc, and newlib, 
that's good enough for me.)

Rob



More information about the busybox mailing list