23 lines
543 B
Diff
23 lines
543 B
Diff
|
|
--- a/html2ps
|
||
|
|
+++ b/html2ps
|
||
|
|
@@ -354,8 +354,8 @@
|
||
|
|
|
||
|
|
EOR
|
||
|
|
|
||
|
|
-eval "require POSIX";
|
||
|
|
-$posix = !$@;
|
||
|
|
+use POSIX;
|
||
|
|
+$posix = 1;
|
||
|
|
|
||
|
|
%extend=('quote',1, 'font',1, 'colour',1, 'hyphenation',1);
|
||
|
|
%fal=("serif","times", "sans_serif","helvetica", "monospace","courier");
|
||
|
|
@@ -496,6 +496,8 @@
|
||
|
|
die "Ghostscript is required to generate cross references\n"
|
||
|
|
if($opt_R && !$package{'Ghostscript'});
|
||
|
|
$tmpname=$posix?POSIX::tmpnam():"h2p_$$";
|
||
|
|
+sysopen TMP, $tmpname, O_RDWR|O_CREAT|O_EXCL, 0600 or die "$!";
|
||
|
|
+close TMP;
|
||
|
|
($scr=$tmpname)=~/\w+$/;
|
||
|
|
$tempdir=$`;
|
||
|
|
|