summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-dr
blob: b436daa2f26abe45b9274ccafe5a95ed84b07dcb (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
$NetBSD: patch-dr,v 1.2 2006/01/05 18:25:57 joerg Exp $

--- lib/libxview/notify/ndet_read.c.orig	Tue Jun 29 07:18:04 1993
+++ lib/libxview/notify/ndet_read.c	Thu Dec 20 10:09:16 2001
@@ -15,12 +15,12 @@ static char     sccsid[] = "@(#)ndet_rea
  * not already in the middle of it.
  */
 
+#include <sys/param.h>
 #include <xview_private/ntfy.h>
 #include <xview_private/ndet.h>
 #include <xview_private/ndis.h>	/* For ndis_client == NTFY_CLIENT_NULL check */
 #include <errno.h>
 
-extern          errno;
 extern int      notify_exclude_fd;
 
 static Notify_value ndet_read_in_func();
@@ -29,11 +29,16 @@ static int      ndet_read_done;
 
 static Notify_client ndet_read_nclient = (Notify_client) & ndet_read_done;
 
+#if !(defined(BSD) && (BSD >= 199103))
 extern int
 read(fd, buf, nbytes)
     register int    fd;
     char           *buf;
     int             nbytes;
+#else
+extern int
+read(int fd, void *buf, size_t nbytes)
+#endif
 {
     int             ndelay;
     Notify_error    return_code;