Skip to content

Commit

Permalink
app-admin/chrpath: add fix for Solaris
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Groffen <[email protected]>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
  • Loading branch information
grobian committed Jun 17, 2019
1 parent 624185e commit b18f34b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-admin/chrpath/chrpath-0.16.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ IUSE="static-libs"
PATCHES=(
"${FILESDIR}"/${P}-multilib.patch
"${FILESDIR}"/${P}-testsuite-1.patch
"${FILESDIR}"/${P}-solaris.patch
)

src_prepare() {
Expand Down
19 changes: 19 additions & 0 deletions app-admin/chrpath/files/chrpath-0.16-solaris.patch
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit b18f34b

Please sign in to comment.