dev-util/ltrace: fix build on ia64
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 18 Mar 2019 09:18:11 +0000 (09:18 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 18 Mar 2019 09:18:36 +0000 (09:18 +0000)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
dev-util/ltrace/files/ltrace-0.7.3-ia64-pid_t.patch [new file with mode: 0644]
dev-util/ltrace/ltrace-0.7.3_p4.ebuild

diff --git a/dev-util/ltrace/files/ltrace-0.7.3-ia64-pid_t.patch b/dev-util/ltrace/files/ltrace-0.7.3-ia64-pid_t.patch
new file mode 100644 (file)
index 0000000..c466ce1
--- /dev/null
@@ -0,0 +1,6 @@
+--- a/sysdeps/linux-gnu/ia64/breakpoint.c
++++ b/sysdeps/linux-gnu/ia64/breakpoint.c
+@@ -26,2 +26,3 @@
+ #include <sys/ptrace.h>
++#include <sys/types.h> /* pid_t */
+ #include <string.h>
index fd5f6d7ae5033e148fdfc1090c81c4f7a8c1fd66..c17e3402f3791dcd5411d6d37c554da043054365 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -34,6 +34,7 @@ src_prepare() {
        epatch "${FILESDIR}"/${PN}-0.7.3-alpha-protos.patch
        epatch "${FILESDIR}"/${PN}-0.7.3-ia64.patch
        epatch "${FILESDIR}"/${PN}-0.7.3-print-test-pie.patch
+       epatch "${FILESDIR}"/${PN}-0.7.3-ia64-pid_t.patch
        sed -i '/^dist_doc_DATA/d' Makefile.am || die
        eautoreconf
 }