[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] include sys/sysmacros.h for getting major() definition
From: |
Khem Raj |
Subject: |
[PATCH] include sys/sysmacros.h for getting major() definition |
Date: |
Sun, 18 Dec 2016 19:49:17 +0000 |
glibc 2.25 has deprecated inclusion of <sys/sysmacros.h> by <sys/types.h>
Signed-off-by: Khem Raj <address@hidden>
---
grub-core/osdep/linux/getroot.c | 2 +-
grub-core/osdep/unix/getroot.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/grub-core/osdep/linux/getroot.c b/grub-core/osdep/linux/getroot.c
index 09e7e6e..5923d17 100644
--- a/grub-core/osdep/linux/getroot.c
+++ b/grub-core/osdep/linux/getroot.c
@@ -20,7 +20,7 @@
#include <config.h>
#include <sys/stat.h>
-#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <assert.h>
#include <fcntl.h>
#include <unistd.h>
diff --git a/grub-core/osdep/unix/getroot.c b/grub-core/osdep/unix/getroot.c
index 4bf37b0..5aaa086 100644
--- a/grub-core/osdep/unix/getroot.c
+++ b/grub-core/osdep/unix/getroot.c
@@ -20,7 +20,7 @@
#include <config.h>
#include <sys/stat.h>
-#include <sys/types.h>
+#include <sys/sysmacros.h>
#include <assert.h>
#include <fcntl.h>
#include <unistd.h>
--
1.9.1
- [PATCH] include sys/sysmacros.h for getting major() definition,
Khem Raj <=
- Re: [PATCH] include sys/sysmacros.h for getting major() definition, Andrei Borzenkov, 2016/12/18
- Re: [PATCH] include sys/sysmacros.h for getting major() definition, Khem Raj, 2016/12/18
- Re: [PATCH] include sys/sysmacros.h for getting major() definition, Andrei Borzenkov, 2016/12/18
- Re: [PATCH] include sys/sysmacros.h for getting major() definition, Khem Raj, 2016/12/18
- Re: [PATCH] include sys/sysmacros.h for getting major() definition, Andrei Borzenkov, 2016/12/18
- Re: [PATCH] include sys/sysmacros.h for getting major() definition, Khem Raj, 2016/12/18
- Re: [PATCH] include sys/sysmacros.h for getting major() definition, Andrei Borzenkov, 2016/12/19
- Re: [PATCH] include sys/sysmacros.h for getting major() definition, Khem Raj, 2016/12/20
- Re: [PATCH] include sys/sysmacros.h for getting major() definition, Andrei Borzenkov, 2016/12/22