summaryrefslogtreecommitdiff
path: root/graphics/netpbm/files/patch-bz
diff options
context:
space:
mode:
authorNeil Blakey-Milner <nbm@FreeBSD.org>2000-08-06 15:58:01 +0000
committerNeil Blakey-Milner <nbm@FreeBSD.org>2000-08-06 15:58:01 +0000
commit456782fa52558b4aef4cbb8a8bdd34b790899fc8 (patch)
tree3a2601e2d93871e08b82ed988f4a1be363630e44 /graphics/netpbm/files/patch-bz
parentUpdate to April 2000 version (diff)
Upgrade to 9.7
PR: ports/20423 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp> (Ports Fury!)
Notes
Notes: svn path=/head/; revision=31345
Diffstat (limited to 'graphics/netpbm/files/patch-bz')
-rw-r--r--graphics/netpbm/files/patch-bz43
1 files changed, 43 insertions, 0 deletions
diff --git a/graphics/netpbm/files/patch-bz b/graphics/netpbm/files/patch-bz
new file mode 100644
index 000000000000..e3408a78d513
--- /dev/null
+++ b/graphics/netpbm/files/patch-bz
@@ -0,0 +1,43 @@
+--- pnm/pamcut.c.orig Fri Aug 4 04:10:14 2000
++++ pnm/pamcut.c Sat Aug 5 00:00:00 2000
+@@ -12,6 +12,7 @@
+
+ #include <limits.h>
+ #include "pam.h"
++#include "shhopt.h"
+
+ #define UNSPEC INT_MAX
+ /* UNSPEC is the value we use for an argument that is not specified
+@@ -86,6 +87,15 @@
+
+ unsigned int option_def_index;
+
++ /* Create the OptStruct structure describing our options */
++ #define OPTENTRY(shortvalue,longvalue,typevalue,outputvalue,flagvalue) {\
++ option_def[option_def_index].shortName = (shortvalue); \
++ option_def[option_def_index].longName = (longvalue); \
++ option_def[option_def_index].type = (typevalue); \
++ option_def[option_def_index].arg = (outputvalue); \
++ option_def[option_def_index].flags = (flagvalue); \
++ option_def_index++; \
++ }
+ option_def_index = 0; /* incremented by OPTENTRY */
+ OPTENTRY(0, "left", OPT_INT, &cmdline_p->left, 0);
+ OPTENTRY(0, "right", OPT_INT, &cmdline_p->right, 0);
+@@ -95,6 +105,7 @@
+ OPTENTRY(0, "height", OPT_INT, &cmdline_p->height, 0);
+ OPTENTRY(0, "pad", OPT_FLAG, &cmdline_p->pad, 0);
+ OPTENTRY(0, "verbose", OPT_FLAG, &cmdline_p->verbose, 0);
++ option_def[option_def_index].type = OPT_END;
+
+ /* Set the defaults */
+ cmdline_p->left = UNSPEC;
+@@ -110,7 +121,7 @@
+ opt.short_allowed = FALSE; /* We have no short (old-fashioned) options */
+ opt.allowNegNum = TRUE; /* We may have parms that are negative numbers */
+
+- pm_optParseOptions2(&argc, argv, opt, 0);
++ optParseOptions2(&argc, argv, opt, 0);
+ /* Uses and sets argc, argv, and some of *cmdline_p and others. */
+
+ if (cmdline_p->width < 0)