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

Mike Frysinger vapier at gentoo.org
Mon Feb 29 10:36:19 PST 2016


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


 1456770979.0


More information about the Toybox mailing list