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-block/fio: fix build w/newer glibc #580592
- Loading branch information
Showing
3 changed files
with
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
https://bugs.gentoo.org/580592 | ||
|
||
From a254805d9ca1872adced3f8be2a053211b8f27eb Mon Sep 17 00:00:00 2001 | ||
From: Mike Frysinger <[email protected]> | ||
Date: Wed, 20 Apr 2016 12:51:23 -0400 | ||
Subject: [PATCH] include sys/sysmacros.h for major/minor | ||
|
||
These functions have always been defined in sys/sysmacros.h under | ||
Linux C libraries. For some, including sys/types.h implicitly | ||
includes that as well, but glibc wants to deprecate that, and some | ||
others already have. Include the header explicitly for the funcs. | ||
|
||
The mtd change is already in upstream mtd-utils too. | ||
|
||
Signed-off-by: Mike Frysinger <[email protected]> | ||
--- | ||
os/os-linux.h | 1 + | ||
oslib/libmtd_common.h | 1 + | ||
2 files changed, 2 insertions(+) | ||
|
||
diff --git a/os/os-linux.h b/os/os-linux.h | ||
index 9e708f0..23c16b6 100644 | ||
--- a/os/os-linux.h | ||
+++ b/os/os-linux.h | ||
@@ -6,6 +6,7 @@ | ||
#include <sys/ioctl.h> | ||
#include <sys/uio.h> | ||
#include <sys/syscall.h> | ||
+#include <sys/sysmacros.h> | ||
#include <sys/vfs.h> | ||
#include <sys/mman.h> | ||
#include <unistd.h> | ||
diff --git a/oslib/libmtd_common.h b/oslib/libmtd_common.h | ||
index a123323..9768066 100644 | ||
--- a/oslib/libmtd_common.h | ||
+++ b/oslib/libmtd_common.h | ||
@@ -30,6 +30,7 @@ | ||
#include <errno.h> | ||
#include <features.h> | ||
#include <inttypes.h> | ||
+#include <sys/sysmacros.h> | ||
|
||
#ifndef PROGRAM_NAME | ||
# error "You must define PROGRAM_NAME before including this header" | ||
-- | ||
2.7.4 | ||
|
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