[PATCH 1/2] Fix header warning with GCC 7 for major()

Andy Grover <[email protected]> Tue, 18 Jul 2017 13:52:57 -0700
Newsgroups org.kernel.vger.stgt
Message-ID <[email protected]>
With GCC 7, there is a warning to include sys/sysmacros.h for "major"
instead of sys/types.h.

Signed-off-by: Andy Grover <[email protected]>
---
 usr/bs_sg.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr/bs_sg.c b/usr/bs_sg.c
index 66f4a3b..6d03aa4 100644
--- a/usr/bs_sg.c
+++ b/usr/bs_sg.c
@@ -35,6 +35,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/epoll.h>
+#include <sys/sysmacros.h>
 #include <scsi/sg.h>
 
 #include "bsg.h" /* Copied from include/linux/bsg.h */
-- 
2.9.4