$NetBSD: patch-ar,v 1.4 2009/12/10 20:35:56 abs Exp $

--- lib/libxview/sel/seln_impl.h.orig	1993-06-29 05:15:25.000000000 +0000
+++ lib/libxview/sel/seln_impl.h
@@ -9,12 +9,17 @@
  *	file for terms of the license.
  */
 
+#ifdef NULL
+#undef NULL
+#endif
 #include <errno.h>
 #ifndef FILE
 #ifndef SVR4
-#undef NULL
 #endif SVR4
 #include <stdio.h>
+#ifndef NULL
+#define NULL 0
+#endif
 #endif FILE
 #include <sys/time.h>
 #include <sys/types.h>
@@ -27,10 +32,6 @@
 #include <xview/sel_attrs.h>
 #include <X11/Xlib.h>
 
-extern int          errno;
-
-
-
 /*
  * Procedure IDs for client-module procedures 
  */
