--- xv-3.10a/tiff/Makefile.ewt	Thu Aug 29 16:42:28 1996
+++ xv-3.10a/tiff/Makefile	Thu Aug 29 16:42:33 1996
@@ -36,7 +36,7 @@
 IPATH= -I.
 
 COPTS=	-O
-CFLAGS=	${COPTS} ${IPATH}
+CFLAGS=	${COPTS} ${IPATH} -D_BSD_SOURCE
 
 INCS=	tiff.h tiffio.h
 
--- xv-3.10a/xv.h.ewt	Thu Aug 29 16:44:24 1996
+++ xv-3.10a/xv.h	Thu Aug 29 16:44:46 1996
@@ -114,8 +114,8 @@
 
 #ifndef VMS
 #  include <errno.h>
-   extern int   errno;             /* SHOULD be in errno.h, but often isn't */
-#  ifndef __NetBSD__
+#  if !defined(__NetBSD__) && !defined(__GNU_LIBRARY__)
+     extern int   errno;             /* SHOULD be in errno.h, but often isn't */
      extern char *sys_errlist[];     /* this too... */
 #  endif
 #endif
