summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch13
-rw-r--r--net-wireless/hidclient/hidclient-20120728.ebuild5
2 files changed, 17 insertions, 1 deletions
diff --git a/net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch b/net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch
new file mode 100644
index 00000000000..7e8376faaed
--- /dev/null
+++ b/net-wireless/hidclient/files/hidclient-20120728-glibc-2.30.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/692250
+
+--- a/hidclient.c
++++ b/hidclient.c
+@@ -102,7 +102,7 @@
+ #include <stdlib.h>
+ #include <string.h>
+ #include <unistd.h>
+-#include <stropts.h>
++//#include <stropts.h>
+ #include <sys/stat.h>
+ #include <sys/time.h>
+ #include <sys/types.h>
diff --git a/net-wireless/hidclient/hidclient-20120728.ebuild b/net-wireless/hidclient/hidclient-20120728.ebuild
index f56b4f7737b..0dc32ee4fc0 100644
--- a/net-wireless/hidclient/hidclient-20120728.ebuild
+++ b/net-wireless/hidclient/hidclient-20120728.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=4
+inherit epatch
+
DESCRIPTION="Use your machine as a bluetooh keyboard/mouse"
HOMEPAGE="http://anselm.hoffmeister.be/computer/hidclient/"
SRC_URI="http://anselm.hoffmeister.be/computer/${PN}/${P}.tar.bz2"
@@ -19,6 +21,7 @@ RDEPEND="${DEPEND}
S="${WORKDIR}"
src_prepare() {
+ epatch "${FILESDIR}"/${P}-glibc-2.30.patch
sed -i 's#gcc#$(CC)#' Makefile
sed -i 's#-O2#$(CFLAGS) $(LDFLAGS)#' Makefile
}