pkgsrc/graphics/xart/patches/patch-ai

20 lines
463 B
Text

$NetBSD: patch-ai,v 1.1 2006/02/23 21:24:12 joerg Exp $
--- rw/writeGIF.c.orig 2006-02-23 21:14:43.000000000 +0000
+++ rw/writeGIF.c
@@ -33,6 +33,7 @@
** CompuServe Incorporated.
*/
+#include <errno.h>
#include <stdio.h>
#include "image.h"
#include "rwTable.h"
@@ -77,7 +78,6 @@ static Image *image;
int
WriteGIF(char *file, Image * outImage)
{
- extern int errno;
int r[MAXCOLORS], g[MAXCOLORS], b[MAXCOLORS];
int i, bpp;
FILE *fp;