Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | https://bugs.gentoo.org/580022 |
| 2 | |
| 3 | From dec8995fe80508374beba6356f6ecbba8ef6b18b Mon Sep 17 00:00:00 2001 |
| 4 | From: Mike Frysinger <vapier@gentoo.org> |
| 5 | Date: Tue, 21 Jun 2016 15:01:08 -0400 |
| 6 | Subject: [PATCH] include sysmacros.h for major/minor/makedev |
| 7 | |
| 8 | Linux C libs are moving away from including this header implicitly via |
| 9 | sys/types.h, so include it explicitly. |
| 10 | |
| 11 | Upstream-Status: Pending |
| 12 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
| 13 | |
| 14 | --- |
| 15 | libparted/arch/linux.c | 1 + |
| 16 | 1 file changed, 1 insertion(+) |
| 17 | |
| 18 | diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c |
| 19 | index 326b95619d31..e5c168be3c68 100644 |
| 20 | --- a/libparted/arch/linux.c |
| 21 | +++ b/libparted/arch/linux.c |
| 22 | @@ -37,6 +37,7 @@ |
| 23 | #include <dirent.h> |
| 24 | #include <sys/ioctl.h> |
| 25 | #include <sys/stat.h> |
| 26 | +#include <sys/sysmacros.h> |
| 27 | #include <sys/types.h> |
| 28 | #include <sys/utsname.h> /* for uname() */ |
| 29 | #include <scsi/scsi.h> |
| 30 | -- |
| 31 | 2.8.2 |
| 32 | |