openbsd-ports/x11/xview/config/patches/p-libxview-io_stream-file_strms_c
2010-05-28 01:13:54 +00:00

27 lines
843 B
Plaintext

--- lib/libxview/io_stream/file_strms.c.orig Tue Jun 29 07:15:07 1993
+++ lib/libxview/io_stream/file_strms.c Sun May 23 14:16:14 2010
@@ -17,7 +17,11 @@ static char sccsid[] = "@(#)file_strms.c 20.18 93/
#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;
};