*** src/gxshade4.h.ORIG Tue Sep 25 15:23:38 2007 --- src/gxshade4.h Tue Sep 25 15:24:04 2007 *************** *** 207,212 **** --- 207,214 ---- byte *reserve_colors(patch_fill_state_t *pfs, patch_color_t *c0[], int n); void release_colors(patch_fill_state_t *pfs, byte *ptr, int n); + #ifndef _AIX dev_proc_fill_linear_color_triangle(gx_fill_triangle_small); + #endif #endif /* gxshade4_INCLUDED */ *** ./src/gdevpng.c.ORIG Tue Sep 25 17:09:18 2007 --- ./src/gdevpng.c Tue Sep 25 17:09:58 2007 *************** *** 280,286 **** --- 280,290 ---- goto done; } /* set error handling */ + #ifdef _AIX + if (setjmp(png_jmpbuf(png_ptr))) { + #else if (setjmp(png_ptr->jmpbuf)) { + #endif /* If we get here, we had a problem reading the file */ code = gs_note_error(gs_error_VMerror); goto done; *** ./src/gpmisc.c.ORIG Tue Sep 25 17:25:50 2007 --- ./src/gpmisc.c Tue Sep 25 18:12:11 2007 *************** *** 93,99 **** * 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 */ --- 93,99 ---- * fdopen as (char *), rather than following the POSIX.1 standard, * which defines it as (const char *). Patch this here. */ ! #if defined (O_LARGEFILE) && !defined(_AIX) file = (b64 ? fdopen64 : fdopen)(fildes, (char *)mode); /* still really const */ #else file = fdopen(fildes, (char *)mode); /* still really const */ *** ./src/gp_unifs.c.ORIG Tue Sep 25 22:44:32 2007 --- ./src/gp_unifs.c Tue Sep 25 22:44:51 2007 *************** *** 88,94 **** /* save the old filename template in case mkstemp fails */ memcpy(ofname, fname, gp_file_name_sizeof); ! #if defined(HAVE_FILE64) && !defined(_LARGEFILE64_SOURCE) if (b64) file = mkstemp64(fname); else --- 88,94 ---- /* save the old filename template in case mkstemp fails */ memcpy(ofname, fname, gp_file_name_sizeof); ! #if defined(HAVE_FILE64) && !defined(_LARGEFILE64_SOURCE) && !defined(_AIX) if (b64) file = mkstemp64(fname); else