diff --git a/app-admin/chrpath/chrpath-0.16.ebuild b/app-admin/chrpath/chrpath-0.16.ebuild index 51137b39303e6..323e49a75d976 100644 --- a/app-admin/chrpath/chrpath-0.16.ebuild +++ b/app-admin/chrpath/chrpath-0.16.ebuild @@ -17,6 +17,7 @@ IUSE="static-libs" PATCHES=( "${FILESDIR}"/${P}-multilib.patch "${FILESDIR}"/${P}-testsuite-1.patch + "${FILESDIR}"/${P}-solaris.patch ) src_prepare() { diff --git a/app-admin/chrpath/files/chrpath-0.16-solaris.patch b/app-admin/chrpath/files/chrpath-0.16-solaris.patch new file mode 100644 index 0000000000000..5e1dd1957e8f0 --- /dev/null +++ b/app-admin/chrpath/files/chrpath-0.16-solaris.patch @@ -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 ++#define bswap_16(x) BSWAP_16(x) ++#define bswap_32(x) BSWAP_32(x) ++#define bswap_64(x) BSWAP_64(x) ++#else + #include ++#endif + #include + #include "config.h" +