diff options
author | reed <reed@pkgsrc.org> | 2005-02-24 07:43:30 +0000 |
---|---|---|
committer | reed <reed@pkgsrc.org> | 2005-02-24 07:43:30 +0000 |
commit | 704484e0e3bccf83f7c2314e15c380df7028ee86 (patch) | |
tree | 1364968e246b79fa6b46fbe800f57e66b9229455 /print/gv/patches | |
parent | a5ff41f7f326033c7fe4c0ad39ab8ae27b48c6a1 (diff) | |
download | pkgsrc-704484e0e3bccf83f7c2314e15c380df7028ee86.tar.gz |
Define ENODATA (if not defined) in patch-ad.
Also make it work with older gcc (patch-aa).
Diffstat (limited to 'print/gv/patches')
-rw-r--r-- | print/gv/patches/patch-aa | 16 | ||||
-rw-r--r-- | print/gv/patches/patch-ad | 14 |
2 files changed, 23 insertions, 7 deletions
diff --git a/print/gv/patches/patch-aa b/print/gv/patches/patch-aa index 7f519751c4c..d6100c00cce 100644 --- a/print/gv/patches/patch-aa +++ b/print/gv/patches/patch-aa @@ -1,19 +1,21 @@ -$NetBSD: patch-aa,v 1.12 2004/12/30 21:04:25 snj Exp $ +$NetBSD: patch-aa,v 1.13 2005/02/24 07:43:30 reed Exp $ ---- src/main.c.orig 2004-12-06 15:36:57.000000000 -0800 -+++ src/main.c 2004-12-30 12:32:38.000000000 -0800 -@@ -321,6 +321,7 @@ int main(argc, argv) +--- src/main.c.orig Mon Dec 6 15:36:57 2004 ++++ src/main.c +@@ -321,6 +321,8 @@ int main(argc, argv) Dimension maximum_width,maximum_height; unsigned int gwidth=0,gheight=0; int dim_forced; -+ int c; ++ int opt_counter = 0; ++ int c; /*### initializing global variables ####################################*/ -@@ -420,7 +421,6 @@ int main(argc, argv) +@@ -419,8 +421,6 @@ int main(argc, argv) + } /*### Manage GNU command line arguments ########################*/ - int opt_counter = 0; +- int opt_counter = 0; - int c; while ((c = getopt_long (argc, argv, "vhu", GNU_longOptions, NULL)) != -1) diff --git a/print/gv/patches/patch-ad b/print/gv/patches/patch-ad new file mode 100644 index 00000000000..a7147137767 --- /dev/null +++ b/print/gv/patches/patch-ad @@ -0,0 +1,14 @@ +$NetBSD: patch-ad,v 1.4 2005/02/24 07:43:30 reed Exp $ + +--- src/file.c.orig Tue Dec 7 15:37:40 2004 ++++ src/file.c +@@ -296,6 +296,9 @@ file_fileIsNotUseful(fn) + errno = EISDIR; + } else if (s.st_size == 0) { + r = 1; ++#ifndef ENODATA ++#define ENODATA ENOMSG ++#endif + errno = ENODATA; + } + IMESSAGE(r) |