--- xpaint-2.7.0/rw/libpnmrw.c.orig	2002-12-15 05:41:26.000000000 -0500
+++ xpaint-2.7.0/rw/libpnmrw.c	2004-04-23 13:59:06.000000000 -0400
@@ -49,7 +49,7 @@
 
 void *malloc(int);
 void free(void *);
-#if defined(__EMX__) || defined(__CYGWIN__)
+#if defined(__EMX__) || defined(__CYGWIN__) || defined(linux)
 #include <errno.h>
 #endif
 
