pkgsrc/x11/xview-lib/patches/patch-dp
joerg 2bbbd70847 First try on fixing xview. Fix errno. Add DragonFly support.
Use NAME_MAX when available. Don't try to fake a FILE on DragonFly.
The implementation of textsw_scanf can be improved, it is very
defensively and slow ATM, the snprintf usage should be portable.
Fix a number of prototype mismatches, e.g. variable argument functions
can conflict with K&R prototypes.

Bump revision since the package "compiled" before, e.g. build
errors where ignored.
2006-01-05 18:25:56 +00:00

25 lines
672 B
Text

$NetBSD: patch-dp,v 1.2 2006/01/05 18:25:57 joerg Exp $
--- lib/libxview/notify/sys_select.c.orig Tue Jun 29 07:18:11 1993
+++ lib/libxview/notify/sys_select.c Thu Dec 20 10:09:16 2001
@@ -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,8 +32,6 @@ static char sccsid[] = "@(#)sys_sele
#include <errno.h> /* For debugging */
#include <stdio.h> /* For debugging */
-extern errno;
-
#ifndef NULL
#define NULL 0
#endif