summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-dp
blob: c01cef047a74b31966e7003e748177d2759d1631 (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
$NetBSD: patch-dp,v 1.3 2009/12/10 20:35:58 abs Exp $

--- lib/libxview/notify/sys_select.c.orig	1993-06-29 05:18:11.000000000 +0000
+++ lib/libxview/notify/sys_select.c
@@ -15,7 +15,11 @@ static char     sccsid[] = "@(#)sys_sele
  */
 
 #ifndef SVR4
+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
 #include <syscall.h>
+#else
+#include <sys/syscall.h>
+#endif
 #else SVR4
 #include <values.h>
 #include <sys/time.h>
@@ -28,8 +32,6 @@ static char     sccsid[] = "@(#)sys_sele
 #include <errno.h>		/* For debugging */
 #include <stdio.h>		/* For debugging */
 
-extern          errno;
-
 #ifndef NULL
 #define NULL	0
 #endif