diff options
author | mita <mita@FreeBSD.org> | 2001-05-27 17:28:55 +0800 |
---|---|---|
committer | mita <mita@FreeBSD.org> | 2001-05-27 17:28:55 +0800 |
commit | a1a84c30b51c7278c4df9627c38197f0416715cd (patch) | |
tree | 3504c7dfacc077e698b07ffe51393954eaab76b6 /japanese/dvi2ps/files | |
parent | 2eebe5eca1407b2b686431bb0c1444acbbcbbf5d (diff) | |
download | freebsd-ports-gnome-a1a84c30b51c7278c4df9627c38197f0416715cd.tar.gz freebsd-ports-gnome-a1a84c30b51c7278c4df9627c38197f0416715cd.tar.zst freebsd-ports-gnome-a1a84c30b51c7278c4df9627c38197f0416715cd.zip |
Maintainer's change #2: Added a patch for mkstemp()
Diffstat (limited to 'japanese/dvi2ps/files')
-rw-r--r-- | japanese/dvi2ps/files/patch-ac | 33 |
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); |