summaryrefslogtreecommitdiff
path: root/benchmarks/zelibm/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/zelibm/patches/patch-ad')
-rw-r--r--benchmarks/zelibm/patches/patch-ad28
1 files changed, 28 insertions, 0 deletions
diff --git a/benchmarks/zelibm/patches/patch-ad b/benchmarks/zelibm/patches/patch-ad
new file mode 100644
index 00000000000..bb319bfc235
--- /dev/null
+++ b/benchmarks/zelibm/patches/patch-ad
@@ -0,0 +1,28 @@
+$NetBSD: patch-ad,v 1.1.1.1 2005/07/27 17:06:53 drochner Exp $
+
+--- image.c.orig 1998-11-25 03:55:32.000000000 +0100
++++ image.c 2004-04-16 22:30:55.000000000 +0200
+@@ -4,7 +4,6 @@
+ form on Microsoft and Be systems. */
+
+ #include <errno.h>
+-#include <error.h>
+ #include <math.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -128,12 +127,12 @@
+
+ /* Write out the result. */
+ strcpy (outname, name);
+- strcat (outname, ".gif");
++ strcat (outname, ".png");
+ outfile = fopen (outname, "w");
+ if (outfile == NULL)
+- error (EXIT_FAILURE, errno, "cannot open output file `%s'", outname);
++ exit (EXIT_FAILURE);
+
+- gdImageGif (im_out, outfile);
++ gdImagePng (im_out, outfile);
+
+ fclose (outfile);
+