--- xv.h.orig 2008-04-07 02:44:16.000000000 +0200
+++ xv.h 2008-04-07 02:48:12.000000000 +0200
# if !(defined __GLIBC__ && __GLIBC__ >= 2)
extern int errno; /* SHOULD be in errno.h, but often isn't */
- extern char *sys_errlist[]; /* this too... */
+# if defined(__DARWIN__)
+ extern __const char *__const sys_errlist[];
+ extern char *sys_errlist[]; /* this too... */
* __DARWIN__, VMS.) Anyone who _does_ need it can explicitly
* define NEED_MALLOC_H in the makefile. */
-# if defined(hp300) || defined(hp800) || defined(NeXT)
+# if defined(hp300) || defined(hp800) || defined(NeXT) || defined(__DARWIN__)
# include <sys/malloc.h> /* it's in "sys" on HPs and NeXT */