aboutsummaryrefslogtreecommitdiff
path: root/graphics/netpbm/files/patch-editor-pnmquant
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/netpbm/files/patch-editor-pnmquant')
-rw-r--r--graphics/netpbm/files/patch-editor-pnmquant15
1 files changed, 8 insertions, 7 deletions
diff --git a/graphics/netpbm/files/patch-editor-pnmquant b/graphics/netpbm/files/patch-editor-pnmquant
index cb5b95577662..f61ca961c530 100644
--- a/graphics/netpbm/files/patch-editor-pnmquant
+++ b/graphics/netpbm/files/patch-editor-pnmquant
@@ -1,16 +1,17 @@
---- editor/pnmquant Tue Dec 16 17:34:11 2003
-+++ editor/pnmquant.new Fri Feb 20 14:31:03 2004
-@@ -13,7 +13,8 @@
+--- editor/pnmquant.orig Sun Feb 19 22:03:42 2006
++++ editor/pnmquant Mon Feb 20 09:41:57 2006
+@@ -15,7 +15,9 @@
use Getopt::Long;
use File::Temp "tempfile";
- use File::Spec;
+ #use Fcntl ":seek"; # not available in Perl 5.00503
-use Fcntl ":seek";
+use Fcntl;
+use POSIX qw(SEEK_SET SEEK_CUR SEEK_END);
++
my ($TRUE, $FALSE) = (1,0);
-@@ -52,7 +53,7 @@
+@@ -57,7 +59,7 @@
my $infile;
my $ncolors = $ARGV[0];
@@ -19,7 +20,7 @@
print(STDERR
"Number of colors argument '$ncolors' is not a positive " .
"integer.\n");
-@@ -111,7 +112,7 @@
+@@ -116,7 +118,7 @@
tell(INFH); # Avoids bogus "INFH is not referenced" warning
}
} else {
@@ -28,7 +29,7 @@
or die("Unable to open input file '$infile'. Errno=$ERRNO");
}
}
-@@ -152,7 +153,7 @@
+@@ -157,7 +159,7 @@
$spreadOpt = "-spreadbrightness";
}