From 4b8605982b246ed5c6ff895fa32b4e603ca602ad Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Mon, 2 Jan 2017 22:04:52 -0600 Subject: sys-block/open-isns: fix builds on musl This patch is in place as the code path it changes fixes is only accessible on musl based systems and only fails to compile on musl based systems. Package-Manager: portage-2.3.0 --- sys-block/open-isns/files/open-isns-0.97-musl.patch | 11 +++++++++++ sys-block/open-isns/open-isns-0.97.ebuild | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 sys-block/open-isns/files/open-isns-0.97-musl.patch (limited to 'sys-block/open-isns') diff --git a/sys-block/open-isns/files/open-isns-0.97-musl.patch b/sys-block/open-isns/files/open-isns-0.97-musl.patch new file mode 100644 index 000000000000..098ade40a213 --- /dev/null +++ b/sys-block/open-isns/files/open-isns-0.97-musl.patch @@ -0,0 +1,11 @@ +--- ./include/libisns/util.h.orig ++++ ./include/libisns/util.h +@@ -114,6 +114,6 @@ + # define ntohll(x) __bswap_64(x) + # endif + # else +-# include ++# include + # define htonll(x) htobe64(x) + # define ntohll(x) be64toh(x) + # endif diff --git a/sys-block/open-isns/open-isns-0.97.ebuild b/sys-block/open-isns/open-isns-0.97.ebuild index fd746860ac16..c742bff295f3 100644 --- a/sys-block/open-isns/open-isns-0.97.ebuild +++ b/sys-block/open-isns/open-isns-0.97.ebuild @@ -20,6 +20,8 @@ DEPEND=" slp? ( net-libs/openslp )" RDEPEND="${DEPEND}" +PATCHES=( "${FILESDIR}/${PN}-${PV}-musl.patch" ) + src_configure() { use debug && append-cppflags -DDEBUG_TCP -DDEBUG_SCSI append-lfs-flags -- cgit v1.2.3-65-gdbad