pkgsrc/x11/xview-lib/patches/patch-am
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

28 lines
931 B
Text

$NetBSD: patch-am,v 1.4 2006/01/05 18:25:57 joerg Exp $
--- lib/libxview/io_stream/file_strms.c.orig Tue Jun 29 07:15:07 1993
+++ lib/libxview/io_stream/file_strms.c Thu Dec 20 10:09:16 2001
@@ -17,7 +17,11 @@
#define GetFISData struct xv_file_input_stream_data *data = (struct xv_file_input_stream_data*) in->client_data
+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
static struct xv_file_input_stream_data {
+#else
+struct xv_file_input_stream_data {
+#endif
FILE *fp;
int lineno;
};
@@ -156,7 +160,11 @@
#define GetFOSData struct xv_file_output_stream_data *data = (struct xv_file_output_stream_data*) out->client_data
+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__)
static struct xv_file_output_stream_data {
+#else
+struct xv_file_output_stream_data {
+#endif
FILE *fp;
int lineno;
};