summaryrefslogtreecommitdiff
path: root/print/ghostscript7/files/patch-src:dviprlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'print/ghostscript7/files/patch-src:dviprlib.c')
-rw-r--r--print/ghostscript7/files/patch-src:dviprlib.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/print/ghostscript7/files/patch-src:dviprlib.c b/print/ghostscript7/files/patch-src:dviprlib.c
new file mode 100644
index 000000000000..67662665f273
--- /dev/null
+++ b/print/ghostscript7/files/patch-src:dviprlib.c
@@ -0,0 +1,13 @@
+--- src/dviprlib.c.orig Tue May 13 16:14:09 1997
++++ src/dviprlib.c Mon Apr 22 23:02:58 2002
+@@ -1433,7 +1433,9 @@
+ char *dviprt_prtcodename[] = { CFG_PRTCODE_NAME, NULL };
+ char *dviprt_encodename[] = { CFG_ENCODE_NAME, NULL };
+
+-private FILE *dviprt_messagestream = stderr;
++private FILE *dviprt_messagestream;
++private void dviprt_messagestream_construct (void) __attribute__((constructor));
++private void dviprt_messagestream_construct (void) { dviprt_messagestream = stderr; }
+
+ /*--- library functions ---*/
+ int