forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-libs/efivar: fix build with glibc-2.23
Bug: https://bugs.gentoo.org/580142 Package-Manager: portage-2.2.28_p64
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 554b0255f9ee265f7d093ac875215207fac8fb1e Mon Sep 17 00:00:00 2001 | ||
From: Mike Gilbert <[email protected]> | ||
Date: Fri, 15 Apr 2016 17:58:15 -0400 | ||
Subject: [PATCH] Include sys/sysmacros.h when sys/types.h does not define | ||
major | ||
|
||
glibc is planning to drop this from sys/types.h. | ||
--- | ||
src/linux.c | 4 ++++ | ||
1 file changed, 4 insertions(+) | ||
|
||
diff --git a/src/linux.c b/src/linux.c | ||
index 866455d..fde6947 100644 | ||
--- a/src/linux.c | ||
+++ b/src/linux.c | ||
@@ -36,6 +36,10 @@ | ||
#include <sys/stat.h> | ||
#include <unistd.h> | ||
|
||
+#ifndef major | ||
+#include <sys/sysmacros.h> | ||
+#endif | ||
+ | ||
#include <efivar.h> | ||
#include <efiboot.h> | ||
|
||
-- | ||
2.8.1 | ||
|