1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-01 22:05:08 +00:00
freebsd-ports/graphics/xpaint/files/patch-af
Justin M. Seger 17fa90d0d0 Upgrade to xpaint-2.5.7
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
PR:		ports/17464
2000-03-21 15:45:59 +00:00

28 lines
691 B
Plaintext

--- rw/libpnmrw.c.orig Wed Jun 10 06:08:57 1998
+++ rw/libpnmrw.c Fri Mar 17 01:40:21 2000
@@ -46,7 +46,7 @@
void *malloc(int);
void free(void *);
-#if defined(__EMX__) || defined(__CYGWIN32__)
+#if defined(__EMX__) || defined(__CYGWIN32__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
#include <errno.h>
#endif
@@ -131,6 +131,7 @@
static void
pm_perror(char *reason)
{
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
#if defined(BSD4_4)
__const extern char *__const sys_errlist[];
#else
@@ -140,6 +141,7 @@
#endif
#if !defined(__EMX__) || defined(__CYGWIN32__)
extern int errno;
+#endif
#endif
char *e;