summaryrefslogtreecommitdiff
path: root/graphics/xart/patches/patch-ai
blob: 9e6863aa73596587c26c2e161df4af5097d3e4bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$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;