diff options
author | minskim <minskim@pkgsrc.org> | 2005-03-24 16:14:03 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2005-03-24 16:14:03 +0000 |
commit | 1fb94917a7bab3b2f8e23be55b9177636ed0f3d1 (patch) | |
tree | 74bbd973949227d03c8ea6b7941ba21cab7d2ac8 | |
parent | 682d936d1a2b75618b905a30c07055e938526ab2 (diff) | |
download | pkgsrc-1fb94917a7bab3b2f8e23be55b9177636ed0f3d1.tar.gz |
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.
-rw-r--r-- | converters/ish/distinfo | 4 | ||||
-rw-r--r-- | converters/ish/patches/patch-ab | 14 | ||||
-rw-r--r-- | converters/ish/patches/patch-ac | 21 |
3 files changed, 38 insertions, 1 deletions
diff --git a/converters/ish/distinfo b/converters/ish/distinfo index 80a0dc144ff..af7a33b3d80 100644 --- a/converters/ish/distinfo +++ b/converters/ish/distinfo @@ -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 --git a/converters/ish/patches/patch-ab b/converters/ish/patches/patch-ab new file mode 100644 index 00000000000..33c5618aa0a --- /dev/null +++ b/converters/ish/patches/patch-ab @@ -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 --git a/converters/ish/patches/patch-ac b/converters/ish/patches/patch-ac new file mode 100644 index 00000000000..14137679904 --- /dev/null +++ b/converters/ish/patches/patch-ac @@ -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) { |