summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-ar
blob: 20b5df70dbcba8d827ee89a9e8dec582d134f598 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
$NetBSD: patch-ar,v 1.3 2006/01/05 18:25:57 joerg Exp $

--- lib/libxview/sel/seln_impl.h.orig	Tue Jun 29 07:15:25 1993
+++ lib/libxview/sel/seln_impl.h	Thu Dec 20 10:09:17 2001
@@ -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 
  */