x11-libs/xpa: Fix building (#637346 by Matt Hartley)
authorPacho Ramos <pacho@gentoo.org>
Sun, 24 Jun 2018 16:07:10 +0000 (18:07 +0200)
committerPacho Ramos <pacho@gentoo.org>
Sun, 24 Jun 2018 16:21:25 +0000 (18:21 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

x11-libs/xpa/files/xpa-2.1.18-include.patch [new file with mode: 0644]
x11-libs/xpa/xpa-2.1.18.ebuild

diff --git a/x11-libs/xpa/files/xpa-2.1.18-include.patch b/x11-libs/xpa/files/xpa-2.1.18-include.patch
new file mode 100644 (file)
index 0000000..f020e18
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/tcl.c b/tcl.c
+index 1dbdad4..acc8d45 100644
+--- a/tcl.c
++++ b/tcl.c
+@@ -2,6 +2,9 @@
+  *    Copyright (c) 1999-2003 Smithsonian Astrophysical Observatory
+  */
++//declares uintptr_t
++#include<stdint.h>
++
+ #include <xpap.h>
+ #if HAVE_TCL
index 45e6b4b73df23b47b3fee5b977c3bb966d07fd6e..7a48a43e10e775b798a97015010c8601c24c04f4 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -19,7 +19,10 @@ RDEPEND="
        x11-libs/libXt:0"
 DEPEND="${RDEPEND}"
 
-PATCHES=( "${FILESDIR}"/${PN}-2.1.18-makefile.patch )
+PATCHES=(
+       "${FILESDIR}"/${PN}-2.1.18-makefile.patch
+       "${FILESDIR}"/${PN}-2.1.18-include.patch #637346
+)
 
 src_prepare() {
        default