diff options
Diffstat (limited to 'print/ghostscript/patches/patch-aq')
-rw-r--r-- | print/ghostscript/patches/patch-aq | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/print/ghostscript/patches/patch-aq b/print/ghostscript/patches/patch-aq new file mode 100644 index 00000000000..87c31dd70fb --- /dev/null +++ b/print/ghostscript/patches/patch-aq @@ -0,0 +1,30 @@ +$NetBSD: patch-aq,v 1.1 2005/12/09 20:30:16 wiz Exp $ + +--- src/gp_unifs.c.orig Thu Mar 9 03:40:41 2000 ++++ src/gp_unifs.c Mon May 1 20:26:24 2000 +@@ -36,8 +36,12 @@ + # define MAXPATHLEN 1024 + #endif + ++#ifdef HAVE_MKSTEMP ++#include <stdlib.h> ++#else + /* Library routines not declared in a standard header */ + extern char *mktemp(P1(char *)); ++#endif + + /* ------ File naming and accessing ------ */ + +@@ -69,8 +73,12 @@ + if (*fname != 0 && fname[strlen(fname) - 1] == 'X') + strcat(fname, "-"); + strcat(fname, "XXXXXX"); ++#ifdef HAVE_MKSTEMP ++ return fdopen(mkstemp(fname), mode); ++#else + mktemp(fname); + return fopen(fname, mode); ++#endif + } + + /* Open a file with the given name, as a stream of uninterpreted bytes. */ |