From 86c37e0bf7207d64ddf53feb9a9d82023d3794b0 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Sat, 27 Apr 2002 18:21:21 +0000 Subject: - Update Gimp-Print driver to version 4.2.1 - Fix build on -current - Fix checksum of gdevdj9.c.gz (again) - Get much improved ps2epsi stuff from ghostscript-gnu version PR: 37500 Submitted by: Ports Fury --- print/ghostscript-afpl/files/patch-src:dviprlib.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'print/ghostscript-afpl/files/patch-src:dviprlib.c') diff --git a/print/ghostscript-afpl/files/patch-src:dviprlib.c b/print/ghostscript-afpl/files/patch-src:dviprlib.c index 1fc25e484764..67662665f273 100644 --- a/print/ghostscript-afpl/files/patch-src:dviprlib.c +++ b/print/ghostscript-afpl/files/patch-src:dviprlib.c @@ -1,23 +1,13 @@ ---- 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 @@ +--- 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 int dviprt_messagestream_init; ++private void dviprt_messagestream_construct (void) __attribute__((constructor)); ++private void dviprt_messagestream_construct (void) { dviprt_messagestream = stderr; } /*--- 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); -- cgit v1.2.3