diff options
author | alfred <alfred@FreeBSD.org> | 2002-04-13 20:05:58 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-04-13 20:05:58 +0000 |
commit | d3bd96bb8f8e59dbb5c472de55bac204271d299b (patch) | |
tree | 8ff35331ff02e9d67f06d69409f1832c107b13d9 /print/ghostscript-gpl | |
parent | 4c92498000093746852c0fb9bcb3a59ca078bf6a (diff) | |
download | FreeBSD-ports-d3bd96bb8f8e59dbb5c472de55bac204271d299b.zip FreeBSD-ports-d3bd96bb8f8e59dbb5c472de55bac204271d299b.tar.gz |
Workaround for 5.x stderr non-const initialization lameness.
Diffstat (limited to 'print/ghostscript-gpl')
-rw-r--r-- | print/ghostscript-gpl/files/patch-src:dviprlib.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/print/ghostscript-gpl/files/patch-src:dviprlib.c b/print/ghostscript-gpl/files/patch-src:dviprlib.c new file mode 100644 index 0000000..1fc25e4 --- /dev/null +++ b/print/ghostscript-gpl/files/patch-src:dviprlib.c @@ -0,0 +1,23 @@ +--- src/dviprlib.c.orig Tue May 13 00:14:09 1997 ++++ src/dviprlib.c Thu Apr 4 03:18:57 2002 +@@ -1433,7 +1433,8 @@ + char *dviprt_prtcodename[] = { CFG_PRTCODE_NAME, NULL }; + char *dviprt_encodename[] = { CFG_ENCODE_NAME, NULL }; + +-private FILE *dviprt_messagestream = stderr; ++private FILE *dviprt_messagestream; ++private int dviprt_messagestream_init; + + /*--- library functions ---*/ + int +@@ -1505,6 +1506,10 @@ + liblocal int + dviprt_printmessage(char *str,int len) + { ++ if (!dviprt_messagestream_init) { ++ dviprt_messagestream = stderr; ++ dviprt_messagestream_init = 1; ++ } + if (dviprt_messagestream && str) { + if (len >= 0) fwrite(str,len,1,dviprt_messagestream); + else fputs(str,dviprt_messagestream); |