summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2017-07-22 17:44:40 +0000
committermaya <maya@pkgsrc.org>2017-07-22 17:44:40 +0000
commit99d9ae6c297384ae24b1a89a4e0f99e8e00bae15 (patch)
tree13319559912beb67ec18e1ad24f517e825336210 /inputmethod
parent82c4a0436346b600d6c03cf76df626f3cf612541 (diff)
downloadpkgsrc-99d9ae6c297384ae24b1a89a4e0f99e8e00bae15.tar.gz
Don't provide a declaration of fgets and gets in a function.
stdio.h is enough. fixes build failure with ssp/fortify
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/canna/distinfo3
-rw-r--r--inputmethod/canna/patches/patch-lib_canna_lisp.c16
2 files changed, 18 insertions, 1 deletions
diff --git a/inputmethod/canna/distinfo b/inputmethod/canna/distinfo
index a068c636f9b..70ee7f8c894 100644
--- a/inputmethod/canna/distinfo
+++ b/inputmethod/canna/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.15 2015/11/04 17:41:19 agc Exp $
+$NetBSD: distinfo,v 1.16 2017/07/22 17:44:40 maya Exp $
SHA1 (Canna37p3.tar.bz2) = e39eece7c70c669dd46dd74b26121a60a2496fde
RMD160 (Canna37p3.tar.bz2) = 33e5eb9e2dc144835db838612897e652acbc60ed
@@ -22,3 +22,4 @@ SHA1 (patch-lib_RKC_convert.c) = f196cfa3db3ef163c1869ca6bfd3f22170997aef
SHA1 (patch-lib_RK_dd.c) = 8055a2a3902e7d4d0cc1d782295c2879311750ec
SHA1 (patch-lib_RK_ncache.c) = e792592500e7db85a6b2370c4ea9eb533d97bda0
SHA1 (patch-lib_canna_keydef.c) = af14140f58bf8a6214a7fb9d5d73347c1b3cdd85
+SHA1 (patch-lib_canna_lisp.c) = 0ed74a04406ab21fb88ef94b182cff2ff3c793ef
diff --git a/inputmethod/canna/patches/patch-lib_canna_lisp.c b/inputmethod/canna/patches/patch-lib_canna_lisp.c
new file mode 100644
index 00000000000..b50329ce640
--- /dev/null
+++ b/inputmethod/canna/patches/patch-lib_canna_lisp.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-lib_canna_lisp.c,v 1.1 2017/07/22 17:44:40 maya Exp $
+
+Don't provide a declaration of gets and fgets
+we're including stdio.h
+
+--- lib/canna/lisp.c.orig 2004-04-26 22:49:21.000000000 +0000
++++ lib/canna/lisp.c
+@@ -1355,8 +1355,6 @@ int c;
+ static int
+ tyi()
+ {
+- char *gets(), *fgets();
+-
+ if (untyibuf) {
+ int ret = untyibuf[--untyip];
+ if (untyip == 0) {