pkgsrc/x11/xview-lib/patches/patch-dq
abs c9c8f97e88 - Add PKG_DESTDIR_SUPPORT
- Depend on the latest version of xview-config
- Mark as LICENSE sun-openlook-license
- Bump pkgrevision
2009-12-10 20:35:56 +00:00

46 lines
1 KiB
Text

$NetBSD: patch-dq,v 1.2 2009/12/10 20:35:58 abs Exp $
--- lib/libxview/notify/ndet_fcntl.c.orig 1993-06-29 05:18:03.000000000 +0000
+++ lib/libxview/notify/ndet_fcntl.c
@@ -17,23 +17,40 @@ static char sccsid[] = "@(#)ndet_fcn
#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);
FD_SET(fd, &bit);