The major/minor macros are defined in sys/sysmacros.h. This has historically been pulled in implicitly by sys/types.h, but C libs are moving away from that as they aren't in POSIX. Use the header directly as defined by BSD systems. --- toys.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/toys.h b/toys.h index 8a29730..5e640a1 100644 --- a/toys.h +++ b/toys.h @@ -34,6 +34,7 @@ #include <sys/resource.h> #include <sys/stat.h> #include <sys/statvfs.h> +#include <sys/sysmacros.h> #include <sys/time.h> #include <sys/times.h> #include <sys/utsname.h> -- 2.6.2 _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
