Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | include <sys/sysmacros.h> for major/minor defintions |
| 2 | |
| 3 | Fixes |
| 4 | |
| 5 | | ../blktool-4.orig/blktool.c: In function 'detect_dev_class': |
| 6 | | ../blktool-4.orig/blktool.c:295:10: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration] |
| 7 | | switch (major(st_rdev)) { |
| 8 | | ^~~~~ |
| 9 | |
| 10 | Upstream-Status: Pending |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | Index: blktool-4.orig/blktool.c |
| 13 | =================================================================== |
| 14 | --- blktool-4.orig.orig/blktool.c |
| 15 | +++ blktool-4.orig/blktool.c |
| 16 | @@ -27,6 +27,7 @@ |
| 17 | #include <linux/cdrom.h> |
| 18 | #include <linux/major.h> |
| 19 | #include <scsi/scsi.h> |
| 20 | +#include <sys/sysmacros.h> |
| 21 | |
| 22 | #include "blktool.h" |
| 23 | |