[git commit] suppress glibc "use sysmacros.h for major" warning

Denys Vlasenko vda.linux at googlemail.com
Mon Dec 12 15:29:32 UTC 2016


commit: https://git.busybox.net/busybox/commit/?id=4f13a7050787aadb402c9c47aae0ff778dbc2c8b
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 include/libbb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/libbb.h b/include/libbb.h
index 2e9ea46..b1fec01 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -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>


More information about the busybox-cvs mailing list