summaryrefslogtreecommitdiff
path: root/print/ghostscript/patches/patch-ac
blob: 2680406237c54b0c4f29a1bcb85222de0e6b382d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ac,v 1.6 2007/08/03 20:02:30 joerg Exp $

--- src/gpmisc.c.orig	2007-07-18 04:37:50.000000000 +0200
+++ src/gpmisc.c
@@ -93,7 +93,7 @@ gp_fopentemp_generic(const char *fname, 
      * fdopen as (char *), rather than following the POSIX.1 standard,
      * which defines it as (const char *).  Patch this here.
      */
-#if defined (O_LARGEFILE)
+#if defined (HAVE_FILE64) && !defined(_AIX)
     file = (b64 ? fdopen64 : fdopen)(fildes, (char *)mode); /* still really const */
 #else
     file = fdopen(fildes, (char *)mode); /* still really const */