diff --git a/ghostscript-mkstemp64.patch b/ghostscript-mkstemp64.patch index 351a7b9..40b609c 100644 --- a/ghostscript-mkstemp64.patch +++ b/ghostscript-mkstemp64.patch @@ -132,3 +132,35 @@ index acb61c1..c17cdbf 100644 /* * Here we deal with the vagaries of various C compilers. We assume that: * ANSI-standard Unix compilers define __STDC__. +From: alexcher +Date: Wed, 5 Sep 2007 19:21:05 +0000 (+0000) +Subject: Replace non-standard function call fdopen64() with fdopen(). The former +X-Git-Url: http://git.infradead.org/?p=ghostscript.git;a=commitdiff_plain;h=dc01761c07d210974d829c35c33a8886c33b0488 + +Replace non-standard function call fdopen64() with fdopen(). The former +is not available on most platforms and not needed anyway because O_LARGEFILE +flag is set earlier in the code. Bug 689175. + +DIFFERENCES: +None + + +git-svn-id: http://svn.ghostscript.com/ghostscript/trunk/gs@8229 a1074d23-0009-0410-80fe-cf8c14f379e6 +--- + +diff --git a/src/gpmisc.c b/src/gpmisc.c +index f963d82..303fac2 100644 +--- a/src/gpmisc.c ++++ b/src/gpmisc.c +@@ -93,11 +93,7 @@ gp_fopentemp_generic(const char *fname, const char *mode, bool b64) + * fdopen as (char *), rather than following the POSIX.1 standard, + * which defines it as (const char *). Patch this here. + */ +-#if defined (O_LARGEFILE) +- file = (b64 ? fdopen64 : fdopen)(fildes, (char *)mode); /* still really const */ +-#else + file = fdopen(fildes, (char *)mode); /* still really const */ +-#endif + if (file == 0) + close(fildes); + return file;