[packages/nkf] add type fixes
atler
atler at pld-linux.org
Thu Aug 13 21:15:36 CEST 2026
commit d939c729d60dc0b62c8cc6e2c5fa2f076fe7596f
Author: Jan Palus <atler at pld-linux.org>
Date: Thu Aug 13 21:15:05 2026 +0200
add type fixes
nkf.spec | 2 ++
types.patch | 20 ++++++++++++++++++++
2 files changed, 22 insertions(+)
---
diff --git a/nkf.spec b/nkf.spec
index 5beed38..ea3505e 100644
--- a/nkf.spec
+++ b/nkf.spec
@@ -12,6 +12,7 @@ License: BSD-like
Group: Applications/Text
Source0: http://www01.tcp-ip.or.jp/~furukawa/nkf_utf8/%{name}%{fver}.tar.gz
# Source0-md5: 5157b91879471b450997f4eec5af62e6
+Patch0: types.patch
URL: http://www01.tcp-ip.or.jp/~furukawa/nkf_utf8/
BuildRequires: perl-devel >= 1:5.8.0
BuildRequires: rpm-perlprov >= 4.1-13
@@ -52,6 +53,7 @@ flag przed ostatnim argumentem.
%prep
%setup -q -n %{name}%{fver}
+%patch -P0 -p1
%build
%{__make} \
diff --git a/types.patch b/types.patch
new file mode 100644
index 0000000..123d993
--- /dev/null
+++ b/types.patch
@@ -0,0 +1,20 @@
+--- nkf202/nkf.c.orig 2003-01-25 01:09:12.000000000 +0100
++++ nkf202/nkf.c 2026-08-13 21:13:19.328545280 +0200
+@@ -259,7 +259,7 @@
+ STATIC int kanji_convert PROTO((FILE *f));
+ STATIC int h_conv PROTO((FILE *f,int c2,int c1));
+ STATIC int push_hold_buf PROTO((int c2));
+-STATIC void set_iconv PROTO((int f, int (*iconv_func)()));
++STATIC void set_iconv PROTO((int f, int (*iconv_func)(int,int,int)));
+ STATIC int s_iconv PROTO((int c2,int c1,int c0));
+ STATIC int s2e_conv PROTO((int c2, int c1, int *p2, int *p1));
+ STATIC int e_iconv PROTO((int c2,int c1,int c0));
+@@ -1087,7 +1087,7 @@
+ #endif
+ {
+ #ifdef CHECK_OPTION
+- static int (*iconv_for_check)() = 0;
++ static int (*iconv_for_check)(int, int, int) = 0;
+ #endif
+ #ifdef INPUT_CODE_FIX
+ if (f || !input_f)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nkf.git/commitdiff/d939c729d60dc0b62c8cc6e2c5fa2f076fe7596f
More information about the pld-cvs-commit
mailing list