summaryrefslogtreecommitdiff
path: root/x11-toolkits/xview/files/patch-lib+libxview+notify+ndet_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11-toolkits/xview/files/patch-lib+libxview+notify+ndet_read.c')
-rw-r--r--x11-toolkits/xview/files/patch-lib+libxview+notify+ndet_read.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/x11-toolkits/xview/files/patch-lib+libxview+notify+ndet_read.c b/x11-toolkits/xview/files/patch-lib+libxview+notify+ndet_read.c
new file mode 100644
index 000000000000..409cab1f77c7
--- /dev/null
+++ b/x11-toolkits/xview/files/patch-lib+libxview+notify+ndet_read.c
@@ -0,0 +1,27 @@
+--- ./lib/libxview/notify/ndet_read.c.orig Tue Jun 29 07:18:04 1993
++++ ./lib/libxview/notify/ndet_read.c Sat Apr 1 18:25:25 2000
+@@ -15,6 +15,7 @@ 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 */
+@@ -29,11 +30,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;