summaryrefslogtreecommitdiff
path: root/converters/ack
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2014-07-06 18:50:20 +0000
committerdholland <dholland@pkgsrc.org>2014-07-06 18:50:20 +0000
commitbc2f4d2e18726daff6efec227169a7c71946bfc2 (patch)
treed8d0d2d7110a4af6066fc1d05f56fa0d9793d688 /converters/ack
parent34b56a1abaee08dc0e29396f145623ea9576e369 (diff)
downloadpkgsrc-bc2f4d2e18726daff6efec227169a7c71946bfc2.tar.gz
Include sys/time.h for utimes(). From PR 48965 by SUNAGAWA Keiki.
Also include sys/types.h first as a general precaution, and don't use <utime.h> any more.
Diffstat (limited to 'converters/ack')
-rw-r--r--converters/ack/distinfo4
-rw-r--r--converters/ack/patches/patch-fileio.c18
2 files changed, 12 insertions, 10 deletions
diff --git a/converters/ack/distinfo b/converters/ack/distinfo
index 6e0fc079a8f..adea065a295 100644
--- a/converters/ack/distinfo
+++ b/converters/ack/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2012/12/26 21:21:38 dholland Exp $
+$NetBSD: distinfo,v 1.4 2014/07/06 18:50:20 dholland Exp $
SHA1 (ack139.tar.gz) = d9ae53238176d46c303a48e736c5bafa9743250c
RMD160 (ack139.tar.gz) = 859af65bb4e4d3e1bc42840b23d571510f095d18
@@ -10,7 +10,7 @@ SHA1 (patch-codetojis.c) = 2c9959113c77bc98340c3ad7596bc7d85bfe66b5
SHA1 (patch-codetosjis.c) = 1cf4a11d584a1a4412002d112cd743500275bf99
SHA1 (patch-codetozen.c) = 9612cf1811489bc251140d611000af551f88ee1a
SHA1 (patch-euctocode.c) = 75486f92a700fa684602d933dcd337f19ab28763
-SHA1 (patch-fileio.c) = 29485831fff5686bb30c9dc62eefed42727999f3
+SHA1 (patch-fileio.c) = d0b097ccf936c1a44a9ec9cc43a51d6dc9997cc9
SHA1 (patch-kanjicheck.c) = c37f252c11df5960f9018d21eda9d12bc272c8ef
SHA1 (patch-kanjicode.h) = f44671c45d2ed7f0a173db84e6c1f10ad1c13f82
SHA1 (patch-kmain.c) = d0e0d31598febf75c633cf29989279e1aa492de8
diff --git a/converters/ack/patches/patch-fileio.c b/converters/ack/patches/patch-fileio.c
index 977ef6bcaff..97ba33c153e 100644
--- a/converters/ack/patches/patch-fileio.c
+++ b/converters/ack/patches/patch-fileio.c
@@ -1,4 +1,4 @@
-$NetBSD: patch-fileio.c,v 1.1 2012/12/26 21:21:38 dholland Exp $
+$NetBSD: patch-fileio.c,v 1.2 2014/07/06 18:50:20 dholland Exp $
- use standard headers
- declare own functions
@@ -11,15 +11,17 @@ $NetBSD: patch-fileio.c,v 1.1 2012/12/26 21:21:38 dholland Exp $
--- fileio.c.orig 1994-06-12 05:31:00.000000000 +0000
+++ fileio.c
-@@ -5,14 +5,18 @@
+@@ -4,15 +4,20 @@
+ /* oga@dgw.yz.yamagata-u.ac.jp */
/* v1.10 1994 03/19 Ogasawara Hiroyuki */
++#include <sys/types.h>
++#include <sys/time.h>
#include <stdio.h>
-+#include <utime.h>
-+
+
+#include "kanjicode.h"
+#include "misc.h"
-
++
#define EMPTY 0
#define STACKSIZE 256
#define PRESIZE (1024*16)
@@ -32,7 +34,7 @@ $NetBSD: patch-fileio.c,v 1.1 2012/12/26 21:21:38 dholland Exp $
unsigned char prebuf[PRESIZE],
*preptr= prebuf;
-@@ -36,7 +40,7 @@ unsigned int code;
+@@ -36,7 +41,7 @@ unsigned int code;
}
int
@@ -41,7 +43,7 @@ $NetBSD: patch-fileio.c,v 1.1 2012/12/26 21:21:38 dholland Exp $
{
if( cstackptr > cstack )
return *--cstackptr;
-@@ -48,7 +52,7 @@ getcode()
+@@ -48,7 +53,7 @@ getcode()
}
void
@@ -50,7 +52,7 @@ $NetBSD: patch-fileio.c,v 1.1 2012/12/26 21:21:38 dholland Exp $
{
*cstackptr++= code;
}
-@@ -62,31 +66,33 @@ void *cp;
+@@ -62,31 +67,33 @@ void *cp;
}
#if HUMAN