summaryrefslogtreecommitdiff
path: root/x11/xview-lib/patches/patch-dq
blob: 742e3e682726262802130bdfcee85b9fe9385f52 (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
43
44
45
$NetBSD: patch-dq,v 1.1 2001/12/20 09:20:08 tron Exp $

--- lib/libxview/notify/ndet_fcntl.c.orig	Tue Jun 29 07:18:03 1993
+++ lib/libxview/notify/ndet_fcntl.c	Thu Dec 20 10:09:16 2001
@@ -17,22 +17,39 @@
 
 #include <xview_private/ntfy.h>
 #include <xview_private/ndet.h>
+#include <sys/param.h>
 #include <signal.h>
 #include <fcntl.h>
 #ifdef SVR4
 #include <sys/file.h>
 #endif SVR4
-
+#if (defined(BSD) && (BSD >= 199103))
+#include <stdarg.h>
+#endif
 extern int
 #ifdef SVR4
 xv_fcntl(fd, cmd, arg)
 #else
+#if (defined(BSD) && (BSD >= 199103))
+fcntl(int fd, int cmd, ...)
+#else
 fcntl(fd, cmd, arg)
+#endif
 #endif SVR4
+#if !(defined(BSD) && (BSD >= 199103))
     int             fd, cmd, arg;
+#endif
 {
     fd_set          bit;
     int             res;
+
+#if (defined(BSD) && (BSD >= 199103))
+    int arg;  
+    va_list valist;
+    va_start(valist, cmd);
+    arg = va_arg(valist, int);
+    va_end(valist);
+#endif
 
     /* Set fd bit */
     FD_ZERO(&bit);