diff options
author | 2021-03-30 09:45:26 +0200 | |
---|---|---|
committer | 2021-03-30 09:46:29 +0200 | |
commit | fe0e67436f07e5925a6f7d2a2efa31a5724f1bbb (patch) | |
tree | c9b41841909e0994762bc1eecc46ea5338ea4549 /sys-apps/sg3_utils/files | |
parent | dev-java/easymock: EAPI 7 (diff) | |
download | gentoo-fe0e67436f07e5925a6f7d2a2efa31a5724f1bbb.tar.gz gentoo-fe0e67436f07e5925a6f7d2a2efa31a5724f1bbb.tar.bz2 gentoo-fe0e67436f07e5925a6f7d2a2efa31a5724f1bbb.zip |
Revert "sys-apps/sg3_utils: Removed old"
This reverts commit c61d54adec2c539872bd05b5c28703e61a2787a0
until sys-apps/rescan-scsi-bus has been last-rited
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-apps/sg3_utils/files')
-rw-r--r-- | sys-apps/sg3_utils/files/sg3_utils-1.42-sysmacros.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys-apps/sg3_utils/files/sg3_utils-1.42-sysmacros.patch b/sys-apps/sg3_utils/files/sg3_utils-1.42-sysmacros.patch new file mode 100644 index 000000000000..e8440fb8c322 --- /dev/null +++ b/sys-apps/sg3_utils/files/sg3_utils-1.42-sysmacros.patch @@ -0,0 +1,31 @@ +From 13ff34d408cf69339ce1f28756f5c7b5ad5f528b Mon Sep 17 00:00:00 2001 +From: Mike Frysinger <vapier@gentoo.org> +Date: Mon, 18 Apr 2016 18:36:09 -0400 +Subject: [PATCH] include sys/sysmacros.h for major/minor funcs + +These functions are not part of any official spec, and glibc has always +kept them in sys/sysmacros.h. As glibc moves to conform to POSIX, and +more alternative C libraries come up, we need to include this header +explicitly to get the prototypes. Otherwise we fail to build like: + +sg_map26.o: In function 'nd_match_scandir_select': +sg_map26.c:(.text+0x37b): undefined reference to 'major' +--- + include/sg_lib.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/sg_lib.h b/include/sg_lib.h +index b3e741b..a0e483c 100644 +--- a/include/sg_lib.h ++++ b/include/sg_lib.h +@@ -32,6 +32,7 @@ + + #include <stdio.h> + #include <stdint.h> ++#include <sys/sysmacros.h> + + #ifdef __cplusplus + extern "C" { +-- +2.7.4 + |