summaryrefslogtreecommitdiff
path: root/graphics/netpbm/files/patch-ce
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/netpbm/files/patch-ce')
-rw-r--r--graphics/netpbm/files/patch-ce38
1 files changed, 38 insertions, 0 deletions
diff --git a/graphics/netpbm/files/patch-ce b/graphics/netpbm/files/patch-ce
new file mode 100644
index 000000000000..b097829a034e
--- /dev/null
+++ b/graphics/netpbm/files/patch-ce
@@ -0,0 +1,38 @@
+--- ppm/ppmchange.c.orig Sun Aug 6 14:44:44 2000
++++ ppm/ppmchange.c Tue Sep 5 00:00:00 2000
+@@ -14,6 +14,7 @@
+ */
+
+ #include "ppm.h"
++#include "shhopt.h"
+ #define TCOLS 256
+ #define SQRT3 1.73205080756887729352
+ /* The square root of 3 */
+@@ -45,8 +46,18 @@
+
+ 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, "closeness", OPT_INT, &cmdlineP->closeness, 0);
++ option_def[option_def_index].type = OPT_END;
+
+ /* Set the defaults */
+ cmdlineP->closeness = 0;
+@@ -55,7 +66,7 @@
+ opt.short_allowed = FALSE; /* We have no short (old-fashioned) options */
+ opt.allowNegNum = FALSE; /* 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 *cmdlineP and others. */
+
+ if ((argc-1) % 2 == 0)