1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

blktool: Fix build with glibc 2.28

(From OE-Core rev: 1c279929b87fda0eb2598e9e9f218dd38cfeb1a1)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2018-08-06 15:57:06 -07:00
committed by Richard Purdie
parent e803b9567a
commit 41171c6c62
2 changed files with 24 additions and 0 deletions
@@ -0,0 +1,23 @@
include <sys/sysmacros.h> for major/minor defintions
Fixes
| ../blktool-4.orig/blktool.c: In function 'detect_dev_class':
| ../blktool-4.orig/blktool.c:295:10: warning: implicit declaration of function 'major' [-Wimplicit-function-declaration]
| switch (major(st_rdev)) {
| ^~~~~
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Index: blktool-4.orig/blktool.c
===================================================================
--- blktool-4.orig.orig/blktool.c
+++ blktool-4.orig/blktool.c
@@ -27,6 +27,7 @@
#include <linux/cdrom.h>
#include <linux/major.h>
#include <scsi/scsi.h>
+#include <sys/sysmacros.h>
#include "blktool.h"
@@ -13,6 +13,7 @@ SRC_URI = "http://snapshot.debian.org/archive/debian/20160728T043443Z/pool/main/
file://0001-fix-typos-in-manpage.patch \
file://0002-fix-string-error.patch \
file://0003-Fix-3-d-argument-for-BLKROSET-it-must-be-const-int.patch \
file://blktool-gnulib-makedev.patch \
"
SRC_URI[tarball.md5sum] = "62edc09c9908107e69391c87f4f3fd40"