openbsd-ports/x11/xview/config/patches/p-libxview-io_stream-file_strms_c

27 lines
851 B
Plaintext

--- lib/libxview/io_stream/file_strms.c.orig 1993-06-29 07:15:07.000000000 +0200
+++ lib/libxview/io_stream/file_strms.c 2003-12-30 01:31:12.000000000 +0100
@@ -17,7 +17,11 @@ static char sccsid[] = "@(#)file_str
#define GetFISData struct xv_file_input_stream_data *data = (struct xv_file_input_stream_data*) in->client_data
+#ifndef __OpenBSD__
static struct xv_file_input_stream_data {
+#else
+struct xv_file_input_stream_data {
+#endif
FILE *fp;
int lineno;
};
@@ -156,7 +160,11 @@ xv_file_input_stream(s, fp)
#define GetFOSData struct xv_file_output_stream_data *data = (struct xv_file_output_stream_data*) out->client_data
+#ifndef __OpenBSD__
static struct xv_file_output_stream_data {
+#else
+struct xv_file_output_stream_data {
+#endif
FILE *fp;
int lineno;
};