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.
34 lines
629 B
Text
34 lines
629 B
Text
$NetBSD: patch-ar,v 1.3 2006/01/05 18:25:57 joerg Exp $
|
|
|
|
--- lib/libxview/sel/seln_impl.h.orig Tue Jun 29 07:15:25 1993
|
|
+++ lib/libxview/sel/seln_impl.h Thu Dec 20 10:09:17 2001
|
|
@@ -9,12 +9,17 @@
|
|
* file for terms of the license.
|
|
*/
|
|
|
|
+#ifdef NULL
|
|
+#undef NULL
|
|
+#endif
|
|
#include <errno.h>
|
|
#ifndef FILE
|
|
#ifndef SVR4
|
|
-#undef NULL
|
|
#endif SVR4
|
|
#include <stdio.h>
|
|
+#ifndef NULL
|
|
+#define NULL 0
|
|
+#endif
|
|
#endif FILE
|
|
#include <sys/time.h>
|
|
#include <sys/types.h>
|
|
@@ -27,10 +32,6 @@
|
|
#include <xview/sel_attrs.h>
|
|
#include <X11/Xlib.h>
|
|
|
|
-extern int errno;
|
|
-
|
|
-
|
|
-
|
|
/*
|
|
* Procedure IDs for client-module procedures
|
|
*/
|