suppress glibc "use sysmacros.h for major" warning
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 12 Dec 2016 15:29:32 +0000 (16:29 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 12 Dec 2016 15:29:32 +0000 (16:29 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h

index 2e9ea46e2f0ce72800ddab6813210e9feddbfab2..b1fec01577fb0608fffcbca00c772abe445e0364 100644 (file)
@@ -45,7 +45,7 @@
 #include <sys/stat.h>
 #include <sys/time.h>
 #include <sys/types.h>
-#ifndef major
+#if !defined(major) || defined(__GLIBC__)
 # include <sys/sysmacros.h>
 #endif
 #include <sys/wait.h>