pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/converters/ish Make this package build on Linux.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1b5eb00c6f02
branches:  trunk
changeset: 491471:1b5eb00c6f02
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Thu Mar 24 16:14:03 2005 +0000

description:
Make this package build on Linux.
  - Include time.h to use "struct tm".
  - stdout is not a constant on some platforms.  Do not use it in
    initializing a variable.

diffstat:

 converters/ish/distinfo         |   4 +++-
 converters/ish/patches/patch-ab |  14 ++++++++++++++
 converters/ish/patches/patch-ac |  21 +++++++++++++++++++++
 3 files changed, 38 insertions(+), 1 deletions(-)

diffs (56 lines):

diff -r 8df5b0c07f4a -r 1b5eb00c6f02 converters/ish/distinfo
--- a/converters/ish/distinfo   Thu Mar 24 16:06:04 2005 +0000
+++ b/converters/ish/distinfo   Thu Mar 24 16:14:03 2005 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.4 2005/02/23 16:12:33 agc Exp $
+$NetBSD: distinfo,v 1.5 2005/03/24 16:14:03 minskim Exp $
 
 SHA1 (ish-1.11.tar.gz) = 99c182c685210179428d44cf1a80d96766cf3d3e
 RMD160 (ish-1.11.tar.gz) = b3fd67f9ff579a865c269f0ba6db77060030fc97
 Size (ish-1.11.tar.gz) = 13029 bytes
 SHA1 (patch-aa) = 51dc6991eaa9b46c71a5c9f9b4e7cb862423d50d
+SHA1 (patch-ab) = 0a5e49eb17efacc8876d4d4de9971fcac085fcbe
+SHA1 (patch-ac) = 03adcba11719bc2d243dda1baee5f351d6333109
diff -r 8df5b0c07f4a -r 1b5eb00c6f02 converters/ish/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/ish/patches/patch-ab   Thu Mar 24 16:14:03 2005 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-ab,v 1.1 2005/03/24 16:14:03 minskim Exp $
+
+--- decode.c.orig      1990-08-05 06:04:08.000000000 -0500
++++ decode.c
+@@ -16,6 +16,9 @@
+ #include <time.h>
+ #define index   strchr
+ #else
++#ifdef __linux__
++#include <time.h>
++#endif
+ #ifdef __TURBOC__
+ #include <time.h>
+ #include <io.h>
diff -r 8df5b0c07f4a -r 1b5eb00c6f02 converters/ish/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/ish/patches/patch-ac   Thu Mar 24 16:14:03 2005 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-ac,v 1.1 2005/03/24 16:14:03 minskim Exp $
+
+--- ish.c.orig 1990-08-05 06:04:08.000000000 -0500
++++ ish.c
+@@ -48,7 +48,7 @@ int  path = 0, size;
+ long lsize;
+ char *filename = "file.ish";
+ 
+-FILE *opath = stdout;
++FILE *opath;
+ FILE *ipath;
+ char name[NAMLEN];
+ 
+@@ -69,6 +69,7 @@ char **argv;
+     char *p;
+     FILE *fopen();
+ 
++    opath = stdout;
+     if (argc < 2)
+       help();
+     while(--argc > 0) {



Home | Main Index | Thread Index | Old Index