app-misc/mx5000tools: fix musl

Closes: https://bugs.gentoo.org/906195
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
This commit is contained in:
Conrad Kostecki 2024-01-02 19:12:43 +01:00
parent 9af4de9760
commit d1e0ed53ba
No known key found for this signature in database
GPG Key ID: 7A96AB564BF498FB
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,20 @@
--- a/libmx5000/mx5000screencontent.c
+++ b/libmx5000/mx5000screencontent.c
@@ -27,6 +27,7 @@
#include <asm/types.h>
#include <linux/hiddev.h>
+#include <linux/limits.h>
#include "libmx5000/mx5000screencontent.h"
#include "libmx5000/mx5000.h"
--- a/libmx5000/hidraw_lib.c
+++ b/libmx5000/hidraw_lib.c
@@ -8,6 +8,7 @@
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
+#include <linux/limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

View File

@ -1,4 +1,4 @@
# Copyright 1999-2022 Gentoo Authors
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@ -22,6 +22,8 @@ RDEPEND="
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
PATCHES=( "${FILESDIR}/${PN}-0.1.2_p20190613-musl.patch" )
src_prepare() {
default