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>
This commit is contained in:
Conrad Kostecki
2020-08-27 20:00:10 +02:00
parent 12d4517eb7
commit cec75a9bee
2 changed files with 15 additions and 2 deletions

View File

@@ -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"

View File

@@ -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