--- src/ri/rib.l.ORIG 2008-11-12 08:00:24.000000000 +0100 +++ src/ri/rib.l 2012-03-04 16:29:52.545010438 +0100 @@ -17,7 +17,7 @@ // Overwrite the YYinput so that it uses libz #undef YY_INPUT -#define YY_INPUT(buf, retval, maxlen) if ( (retval = gzread(ribin,buf,maxlen)) < 0) \ +#define YY_INPUT(buf, retval, maxlen) if ( (retval = gzread((gzFile)ribin,buf,maxlen)) < 0) \ YY_FATAL_ERROR( "input in flex scanner failed" ); #endif @@ -223,7 +223,7 @@ TRibFile *nextFile = ribStack->next; rib_delete_buffer( YY_CURRENT_BUFFER ); #ifdef HAVE_ZLIB - gzclose(ribin); + gzclose((gzFile)ribin); #else fclose(ribin); #endif @@ -243,7 +243,7 @@ rib_delete_buffer( YY_CURRENT_BUFFER ); #ifdef HAVE_ZLIB - gzclose(ribin); + gzclose((gzFile)ribin); #else fclose(ribin); #endif --- src/ri/ribOut.cpp.ORIG 2009-02-23 06:48:03.000000000 +0100 +++ src/ri/ribOut.cpp 2012-03-04 16:26:02.306008184 +0100 @@ -162,7 +162,7 @@ #ifdef HAVE_ZLIB if (outputCompressed) { - gzclose(outFile); + gzclose((gzFile)outFile); } else { fclose(outFile); } --- src/ri/ribOut.h.ORIG 2009-02-23 06:48:03.000000000 +0100 +++ src/ri/ribOut.h 2012-03-04 16:06:30.347996715 +0100 @@ -237,7 +237,7 @@ const int l = vsprintf(scratch,mes,args); #ifdef HAVE_ZLIB - if (outputCompressed) gzwrite(outFile,scratch,l); + if (outputCompressed) gzwrite((gzFile)outFile,scratch,l); else fwrite(scratch,1,l,outFile); #else fwrite(scratch,1,l,outFile); @@ -258,7 +258,7 @@ const int l = vsprintf(scratch,mes,args); #ifdef HAVE_ZLIB - if (outputCompressed) gzwrite(outFile,scratch,l); + if (outputCompressed) gzwrite((gzFile)outFile,scratch,l); else fwrite(scratch,1,l,outFile); #else fwrite(scratch,1,l,outFile); --- src/ri/rib.y.ORIG 2009-01-27 01:32:50.000000000 +0100 +++ src/ri/rib.y 2012-03-04 16:09:43.424998604 +0100 @@ -2940,7 +2940,7 @@ if (ribin != NULL) { #ifdef HAVE_ZLIB - gzclose(ribin); + gzclose((gzFile)ribin); #else fclose(ribin); #endif