From: Matthew Thode Date: Tue, 3 Jan 2017 04:04:52 +0000 (-0600) Subject: sys-block/open-isns: fix builds on musl X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4b8605982b246ed5c6ff895fa32b4e603ca602ad;p=gentoo.git 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 --- 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