summaryrefslogtreecommitdiff
path: root/textproc/catdoc/patches
diff options
context:
space:
mode:
authoris <is>2005-06-22 21:11:35 +0000
committeris <is>2005-06-22 21:11:35 +0000
commit46afd18c9ff767d646e42e20f21d9fd876a48375 (patch)
treea02b2b86228461174e63768ae7b06f64905b8487 /textproc/catdoc/patches
parent91cb6c12b7c60cc8bf33608959f253b5f23007bc (diff)
downloadpkgsrc-46afd18c9ff767d646e42e20f21d9fd876a48375.tar.gz
getopt() returns an int so that -1 can be distinguished from any character
value (xls2csv wouldn't accept any command line without this fix). While we're here, add <stdlib.h> to analyze.c so that exit() is declared.
Diffstat (limited to 'textproc/catdoc/patches')
-rw-r--r--textproc/catdoc/patches/patch-ae13
-rw-r--r--textproc/catdoc/patches/patch-af10
2 files changed, 23 insertions, 0 deletions
diff --git a/textproc/catdoc/patches/patch-ae b/textproc/catdoc/patches/patch-ae
new file mode 100644
index 00000000000..03916f47d45
--- /dev/null
+++ b/textproc/catdoc/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2005/06/22 21:11:35 is Exp $
+
+--- src/xls2csv.c.orig 1999-12-30 15:22:19.000000000 +0100
++++ src/xls2csv.c
+@@ -55,7 +55,7 @@ int main(int argc, char *argv[])
+ char *filename;
+ short int *tmp_charset;
+ char *dest_csname;
+- char c;
++ int c;
+ int i;
+ check_charset(&dest_csname,TARGET_CHARSET);
+ while ((c=getopt(argc,argv,"ls:d:xq:c:"))!=-1) {
diff --git a/textproc/catdoc/patches/patch-af b/textproc/catdoc/patches/patch-af
new file mode 100644
index 00000000000..eb0bfad5307
--- /dev/null
+++ b/textproc/catdoc/patches/patch-af
@@ -0,0 +1,10 @@
+$NetBSD: patch-af,v 1.1 2005/06/22 21:11:36 is Exp $
+
+--- src/analyze.c.orig 2005-06-22 22:50:38.000000000 +0200
++++ src/analyze.c
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <limits.h>
+ #include <string.h>
+ #include "catdoc.h"