summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-dm
blob: f8562c9aedf4e1c681fa3872e75e5a71787379e5 (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
35
36
37
38
39
40
41
42
$NetBSD: patch-dm,v 1.2 2006/01/05 18:25:57 joerg Exp $

--- lib/libxview/notify/ndet_loop.c.orig	Tue Jun 29 07:18:19 1993
+++ lib/libxview/notify/ndet_loop.c	Thu Dec 20 10:09:16 2001
@@ -14,13 +14,18 @@ static char     sccsid[] = "@(#)ndet_loo
  * Ndet_loop.c - Notification loop.
  */
 
+#include <sys/param.h>
 #include <xview_private/i18n_impl.h>
 #include <xview_private/ntfy.h>
 #include <xview_private/ndet.h>
 #include <xview_private/nint.h>
 #include <xview_private/ndis.h>	/* For ndis_dispatch */
 #ifndef SVR4
+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
 #include <syscall.h>
+#else
+#include <sys/syscall.h>
+#endif
 #else SVR4
 #include <sys/syscall.h>
 #include <sys/poll.h>
@@ -35,8 +40,6 @@ static char     sccsid[] = "@(#)ndet_loo
 #include <stdio.h>		/* For temp debugging */
 #include <rpc/rpc.h>
 
-extern int      errno;
-
 pkg_private_data u_int ndet_flags = 0;
 pkg_private_data NTFY_CLIENT *ndet_clients = 0;
 pkg_private_data NTFY_CLIENT *ndet_client_latest = 0;
@@ -224,7 +227,8 @@ notify_start()
 	     * will return with an EINTR when a signal arrives while IN
 	     * select, not ON THE WAY into select).
 	     */
-#ifndef SVR4
+
+#if !defined(SVR4) && !(defined(BSD) && (BSD >= 199103))
 	    nfds = syscall(SYS_select,
 			   FD_SETSIZE, &ibits, &obits, &ebits,
 		 (sigisempty(&ndet_sigs_received)) ? timer : &ndet_polling_tv);