Blame SOURCES/0088-linux.c-Use-sys-sysmacros.h-for-major-minor.patch

0cb0b9
From 027f5669d4c78b035a0c9134608d8411d9617c4b Mon Sep 17 00:00:00 2001
0cb0b9
From: "Brian C. Lane" <bcl@redhat.com>
0cb0b9
Date: Mon, 13 Aug 2018 12:04:23 -0700
0cb0b9
Subject: [PATCH] linux.c: Use sys/sysmacros.h for major/minor
0cb0b9
0cb0b9
gcc is also going to deprecate this at some point, so start using
0cb0b9
sys/sysmacros.h directly.
0cb0b9
0cb0b9
Resolves: rhbz#1615592
0cb0b9
---
0cb0b9
 libparted/arch/linux.c | 1 +
0cb0b9
 1 file changed, 1 insertion(+)
0cb0b9
0cb0b9
diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c
0cb0b9
index 4ec3440..8eb54fa 100644
0cb0b9
--- a/libparted/arch/linux.c
0cb0b9
+++ b/libparted/arch/linux.c
0cb0b9
@@ -36,6 +36,7 @@
0cb0b9
 #include <stdbool.h>
0cb0b9
 #include <dirent.h>
0cb0b9
 #include <sys/ioctl.h>
0cb0b9
+#include <sys/sysmacros.h>      /* for major() and minor() */
0cb0b9
 #include <sys/stat.h>
0cb0b9
 #include <sys/types.h>
0cb0b9
 #include <sys/utsname.h>        /* for uname() */
0cb0b9
-- 
0cb0b9
2.17.1
0cb0b9