From fc314e5732787503ed13e9402b737c9d5e342f1b Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Thu, 27 Sep 2007 11:23:56 +0000 Subject: [PATCH] Include missing piece. --- ghostscript-mkstemp64.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) 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;