summaryrefslogtreecommitdiff
path: root/japanese/dvi2ps
diff options
context:
space:
mode:
authorYoshio MITA <mita@FreeBSD.org>2001-05-27 09:28:55 +0000
committerYoshio MITA <mita@FreeBSD.org>2001-05-27 09:28:55 +0000
commitf8efbb0a7b6f8d1509b13707d776ab6f5278d80d (patch)
treed89d88d5170f83886482bb032e22c155410b8572 /japanese/dvi2ps
parentUpdated to 3.0-J (diff)
Maintainer's change #2: Added a patch for mkstemp()
Notes
Notes: svn path=/head/; revision=43116
Diffstat (limited to 'japanese/dvi2ps')
-rw-r--r--japanese/dvi2ps/files/patch-ac33
1 files changed, 33 insertions, 0 deletions
diff --git a/japanese/dvi2ps/files/patch-ac b/japanese/dvi2ps/files/patch-ac
new file mode 100644
index 000000000000..043e83c7decf
--- /dev/null
+++ b/japanese/dvi2ps/files/patch-ac
@@ -0,0 +1,33 @@
+--- run.c.orig Fri May 11 00:08:14 2001
++++ run.c Fri May 11 00:07:26 2001
+@@ -30,6 +30,9 @@
+ char *tcp, *tcp1; /* temporary character pointers */
+ char *tmp;
+ int ch;
++#ifdef __FreeBSD__
++ int tmpid; /* FreeBSD uses mkstemp instead of mktemp */
++#endif
+ extern BOOLEAN epsf;
+
+ for (argind = 1; argind < argc; argind++) {
+@@ -206,11 +209,20 @@
+ ((tmp = getenv("TEMP")) == NULL))
+ tmp = TMP;
+ (void)strcpy(dvifilename, tmp);
++#ifdef __FreeBSD__
++ (void)strcat(dvifilename, DVITEMPLATE);
++ (void)strcat(dvifilename,".dvi");
++ if((tmpid = mkstemps (dvifilename, 4)) == -1)
++ Fatal("can't create DVI file for stdin");
++ dvifp = fdopen(tmpid, "w+");
++#else
++
+ (void)mktemp(strcat(dvifilename, DVITEMPLATE));
+ (void)strcpy(rootname, dvifilename); /* not used now */
+ (void)strcat(dvifilename, ".dvi");
+ if ((dvifp = BINARYWOPEN(dvifilename)) == NULL)
+ Fatal("can't create DVI file for stdin");
++#endif
+ stdindvi = TRUE;
+ #if !defined(MSDOS) && !defined(WIN32)
+ (void)signal(SIGHUP, sigabort);