summaryrefslogtreecommitdiff
path: root/japanese/kpcal/files/patch-kpcal.c
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2013-12-19 13:30:13 +0000
committerPawel Pekala <pawel@FreeBSD.org>2013-12-19 13:30:13 +0000
commit97176d0d810ff375a722365226efafc9a481278d (patch)
tree566b4e928f78cc3fe093edaee64914bf00a4f9be /japanese/kpcal/files/patch-kpcal.c
parent- Update from 2.2 to 2.4 (diff)
- Fix build with clang
- Support staging PR: ports/184812 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to '')
-rw-r--r--japanese/kpcal/files/patch-kpcal.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/japanese/kpcal/files/patch-kpcal.c b/japanese/kpcal/files/patch-kpcal.c
new file mode 100644
index 000000000000..f4778b525e08
--- /dev/null
+++ b/japanese/kpcal/files/patch-kpcal.c
@@ -0,0 +1,55 @@
+--- kpcal.c.orig
++++ kpcal.c
+@@ -5,6 +5,8 @@
+ */
+
+ #include <stdio.h>
++#include <stdlib.h>
++#include <unistd.h>
+ #include <ctype.h>
+ #include <time.h>
+ #include <string.h>
+@@ -28,6 +30,7 @@
+ static char daynum_font[64] = DAYNUM_DEFAULT_FONT;
+
+ extern void ConvertString();
++extern void pmonth();
+
+ FILE *cfp = NULL;
+ int year;
+@@ -35,7 +38,7 @@
+
+ char *getenv();
+
+-main(argc, argv)
++int main(argc, argv)
+ int argc;
+ char **argv;
+ {
+@@ -46,7 +49,7 @@
+ register char *cp;
+ char *cfile = NULL;
+ char cbuf[80];
+- long t, time();
++ time_t t, time();
+ int errflg = 0;
+ int nocal = 0;
+ int m;
+@@ -86,7 +89,7 @@
+ exit(1);
+ }
+
+- t = time((long *)0);
++ t = time((time_t *)0);
+ lt = localtime(&t);
+
+ /*
+@@ -150,7 +153,7 @@
+ /*
+ * pmonth - do calendar for month "m"
+ */
+-pmonth(m)
++void pmonth(m)
+ int m;
+ {
+ register char **s;