summaryrefslogtreecommitdiff
path: root/math/xlife/patches/patch-ab
blob: 4fe300ede360f6090c8144ab7796217720e479f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-ab,v 1.1.1.1 2001/12/31 21:32:56 fredb Exp $

--- data.h.orig	Mon Jun 17 15:06:51 1996
+++ data.h
@@ -84,9 +84,8 @@
 GLOBAL void setcolor(int val, unsigned long x, unsigned long y);
 
 /* UNIX interface */
-extern int sys_nerr, errno;
-extern char *sys_errlist[];
-#define SYSERR sys_errlist[(errno > sys_nerr? 0 : errno)]
+#include <errno.h>
+#define SYSERR strerror(errno)
 
 /* X I/O state information */
 GLOBAL Display *disp;