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

27 lines
850 B
Plaintext

--- lib/libxview/io_stream/str_strms.c.orig 1993-06-29 07:15:06.000000000 +0200
+++ lib/libxview/io_stream/str_strms.c 2003-12-30 01:31:12.000000000 +0100
@@ -17,7 +17,11 @@ static char sccsid[] = "@(#)str_strm
#define GetSISData struct string_input_stream_data *data = (struct string_input_stream_data*) in->client_data
+#ifndef __OpenBSD__
static struct string_input_stream_data {
+#else
+struct string_input_stream_data {
+#endif
char *string;
int charpos;
};
@@ -148,7 +152,11 @@ string_input_stream(s, in)
#define GetSOSData struct string_output_stream_data *data = (struct string_output_stream_data*) out->client_data
+#ifndef __OpenBSD__
static struct string_output_stream_data {
+#else
+struct string_output_stream_data {
+#endif
char *string;
int charpos;
};