mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-admin/chrpath: add fix for Solaris
Signed-off-by: Fabian Groffen <grobian@gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11
This commit is contained in:
@@ -17,6 +17,7 @@ IUSE="static-libs"
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-multilib.patch
|
||||
"${FILESDIR}"/${P}-testsuite-1.patch
|
||||
"${FILESDIR}"/${P}-solaris.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
|
||||
19
app-admin/chrpath/files/chrpath-0.16-solaris.patch
Normal file
19
app-admin/chrpath/files/chrpath-0.16-solaris.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
protos: add bswap macros for Solaris
|
||||
|
||||
--- a/protos.h
|
||||
+++ b/protos.h
|
||||
@@ -1,7 +1,14 @@
|
||||
#ifndef PROTOS_H
|
||||
#define PROTOS_H
|
||||
|
||||
+#if defined(__sun)
|
||||
+#include <sys/byteorder.h>
|
||||
+#define bswap_16(x) BSWAP_16(x)
|
||||
+#define bswap_32(x) BSWAP_32(x)
|
||||
+#define bswap_64(x) BSWAP_64(x)
|
||||
+#else
|
||||
#include <byteswap.h>
|
||||
+#endif
|
||||
#include <elf.h>
|
||||
#include "config.h"
|
||||
|
||||
Reference in New Issue
Block a user