Index: xv.h
--- xv.h.orig	2007-05-27 22:01:23 +0200
+++ xv.h	2007-05-27 22:02:44 +0200
@@ -158,7 +158,7 @@
 
 #ifndef VMS
 #  include <errno.h>
-#  ifndef __NetBSD__
+#  if !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__linux__)
 #    if !(defined __GLIBC__ && __GLIBC__ >= 2)
        extern int   errno;         /* SHOULD be in errno.h, but often isn't */
        extern char *sys_errlist[]; /* this too... */
