pkgsrc/x11/xview-lib/patches/patch-dp
dholland 6fb4f9c99b The time_t changes made the gum holding the logic together fall off.
Scrape it up and stick it back on again. Fixes build on -current.
2010-04-24 19:52:23 +00:00

41 lines
1,014 B
Text

$NetBSD: patch-dp,v 1.4 2010/04/24 19:52:23 dholland Exp $
--- lib/libxview/notify/sys_select.c.orig 1993-06-29 05:18:11.000000000 +0000
+++ lib/libxview/notify/sys_select.c
@@ -15,7 +15,11 @@ static char sccsid[] = "@(#)sys_sele
*/
#ifndef SVR4
+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
#include <syscall.h>
+#else
+#include <sys/syscall.h>
+#endif
#else SVR4
#include <values.h>
#include <sys/time.h>
@@ -28,12 +32,22 @@ static char sccsid[] = "@(#)sys_sele
#include <errno.h> /* For debugging */
#include <stdio.h> /* For debugging */
-extern errno;
-
#ifndef NULL
#define NULL 0
#endif
+/* netbsd-6's time_t changes caused versioning/renaming of select */
+/* XXX xview should not be using syscall() */
+#ifdef __NetBSD__
+#ifndef SYS_select
+#ifdef SYS___select50
+#define SYS_select SYS___select50
+#else
+#error "help!"
+#endif
+#endif
+#endif
+
pkg_private int
#ifndef SVR4
notify_select(nfds, readfds, writefds, exceptfds, tv)