summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-08-13 01:02:51 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-08-13 01:02:51 +0900
commit3ccaa0fc8598fdc581dd78cbcc3356b7d1bf02f1 (patch)
tree454375ef471ac5c480082c5d9fef465feb24ad4c /app-i18n
parentapp-i18n/ibus-handwrite: update HOMEPAGE and SRC_URI (diff)
downloadgentoo-3ccaa0fc8598fdc581dd78cbcc3356b7d1bf02f1.tar.gz
gentoo-3ccaa0fc8598fdc581dd78cbcc3356b7d1bf02f1.tar.bz2
gentoo-3ccaa0fc8598fdc581dd78cbcc3356b7d1bf02f1.zip
app-i18n/ibus-handwrite: fix implicit declarations
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n')
-rw-r--r--app-i18n/ibus-handwrite/files/ibus-handwrite-headers.patch20
-rw-r--r--app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild5
2 files changed, 24 insertions, 1 deletions
diff --git a/app-i18n/ibus-handwrite/files/ibus-handwrite-headers.patch b/app-i18n/ibus-handwrite/files/ibus-handwrite-headers.patch
new file mode 100644
index 000000000000..f1cb4d574624
--- /dev/null
+++ b/app-i18n/ibus-handwrite/files/ibus-handwrite-headers.patch
@@ -0,0 +1,20 @@
+--- a/src/handrecog_lucykila.c
++++ b/src/handrecog_lucykila.c
+@@ -14,6 +14,7 @@
+ #include <sys/fcntl.h>
+ #include <sys/mman.h>
+ #include <math.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <glib.h>
+
+--- a/src/main.c
++++ b/src/main.c
+@@ -3,6 +3,7 @@
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <ibus.h>
+ #include <locale.h>
+ #include <gtk/gtkgl.h>
diff --git a/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild
index ac74a30b9863..6965a9cf27eb 100644
--- a/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild
+++ b/app-i18n/ibus-handwrite/ibus-handwrite-2.1.4-r1.ebuild
@@ -26,7 +26,10 @@ DEPEND="${RDEPEND}
virtual/pkgconfig
nls? ( sys-devel/gettext )"
-PATCHES=( "${FILESDIR}"/${PN}-link.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-headers.patch
+ "${FILESDIR}"/${PN}-link.patch
+)
src_prepare() {
default