rpms/ghostscript/devel ghostscript-mkstemp64.patch,1.1,1.2

Tim Waugh (twaugh) fedora-extras-commits at redhat.com
Thu Sep 27 11:24:00 UTC 2007


Author: twaugh

Update of /cvs/pkgs/rpms/ghostscript/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10772

Modified Files:
	ghostscript-mkstemp64.patch 
Log Message:
Include missing piece.

ghostscript-mkstemp64.patch:

Index: ghostscript-mkstemp64.patch
===================================================================
RCS file: /cvs/pkgs/rpms/ghostscript/devel/ghostscript-mkstemp64.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ghostscript-mkstemp64.patch	27 Sep 2007 11:05:26 -0000	1.1
+++ ghostscript-mkstemp64.patch	27 Sep 2007 11:23:56 -0000	1.2
@@ -132,3 +132,35 @@
  /*
   * Here we deal with the vagaries of various C compilers.  We assume that:
   *      ANSI-standard Unix compilers define __STDC__.
+From: alexcher <alexcher at a1074d23-0009-0410-80fe-cf8c14f379e6>
+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;




More information about the scm-commits mailing list