summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConrad Kostecki <conikost@gentoo.org>2020-08-27 20:00:10 +0200
committerConrad Kostecki <conikost@gentoo.org>2020-08-27 20:00:10 +0200
commitcec75a9bee49d7d70439b2457c463e43aefbef66 (patch)
treecf6a39ee4e48419306de0624dc6f3a06d4f1a7c0 /app-misc/mx5000tools
parentsys-apps/pnputils: fix compilation with musl (diff)
downloadgentoo-cec75a9bee49d7d70439b2457c463e43aefbef66.tar.gz
gentoo-cec75a9bee49d7d70439b2457c463e43aefbef66.tar.bz2
gentoo-cec75a9bee49d7d70439b2457c463e43aefbef66.zip
app-misc/mx5000tools: fix compilation with musl
Closes: https://bugs.gentoo.org/713738 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-misc/mx5000tools')
-rw-r--r--app-misc/mx5000tools/files/mx5000tools-0.1.2-musl.patch10
-rw-r--r--app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild7
2 files changed, 15 insertions, 2 deletions
diff --git a/app-misc/mx5000tools/files/mx5000tools-0.1.2-musl.patch b/app-misc/mx5000tools/files/mx5000tools-0.1.2-musl.patch
new file mode 100644
index 00000000000..8ed94abf1eb
--- /dev/null
+++ b/app-misc/mx5000tools/files/mx5000tools-0.1.2-musl.patch
@@ -0,0 +1,10 @@
+--- a/libmx5000/mx5000.c
++++ b/libmx5000/mx5000.c
+@@ -29,6 +29,7 @@
+
+ #include <asm/types.h>
+ #include <linux/hiddev.h>
++#include <linux/limits.h>
+
+ #include "libmx5000/mx5000.h"
+
diff --git a/app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild b/app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild
index dd66bb738be..798113cdf83 100644
--- a/app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild
+++ b/app-misc/mx5000tools/mx5000tools-0.1.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -20,7 +20,10 @@ RDEPEND="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
-PATCHES=( "${FILESDIR}/${P}-find-netpbm-header.patch" )
+PATCHES=(
+ "${FILESDIR}/${P}-find-netpbm-header.patch"
+ "${FILESDIR}/${P}-musl.patch"
+)
src_prepare() {
default