summaryrefslogtreecommitdiff
authorDenys Vlasenko <vda.linux@googlemail.com>2016-12-12 15:29:32 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2016-12-12 15:29:32 (GMT)
commit4f13a7050787aadb402c9c47aae0ff778dbc2c8b (patch)
treea532a56774c5fd7a4c07c727a696dac70000519b
parentdf25df784f2bbc5e3b27f8be6c3555c358f470c1 (diff)
downloadbusybox-4f13a7050787aadb402c9c47aae0ff778dbc2c8b.zip
busybox-4f13a7050787aadb402c9c47aae0ff778dbc2c8b.tar.gz
busybox-4f13a7050787aadb402c9c47aae0ff778dbc2c8b.tar.bz2
suppress glibc "use sysmacros.h for major" warning
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat
-rw-r--r--include/libbb.h2
1 files changed, 1 insertions, 1 deletions
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>