[gs-cvs] rev 8229 - trunk/gs/src
alexcher at ghostscript.com
alexcher at ghostscript.com
Wed Sep 5 12:21:06 PDT 2007
Author: alexcher
Date: 2007-09-05 12:21:05 -0700 (Wed, 05 Sep 2007)
New Revision: 8229
Modified:
trunk/gs/src/gpmisc.c
Log:
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
Modified: trunk/gs/src/gpmisc.c
===================================================================
--- trunk/gs/src/gpmisc.c 2007-09-05 07:54:54 UTC (rev 8228)
+++ trunk/gs/src/gpmisc.c 2007-09-05 19:21:05 UTC (rev 8229)
@@ -93,11 +93,7 @@
* 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 gs-cvs
mailing list