sys-block/open-isns: fix builds on musl
authorMatthew Thode <prometheanfire@gentoo.org>
Tue, 3 Jan 2017 04:04:52 +0000 (22:04 -0600)
committerMatthew Thode <prometheanfire@gentoo.org>
Tue, 3 Jan 2017 04:06:53 +0000 (22:06 -0600)
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 [new file with mode: 0644]
sys-block/open-isns/open-isns-0.97.ebuild

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 (file)
index 0000000..098ade4
--- /dev/null
@@ -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 <sys/endian.h>
++#  include <endian.h>
+ #  define htonll(x)     htobe64(x)
+ #  define ntohll(x)     be64toh(x)
+ # endif
index fd746860ac16e6e05c6b110bff4b065bfded4dbb..c742bff295f38a6b6299c649deff2af2a62098bd 100644 (file)
@@ -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