public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-portage/deltup/files: deltup-0.4.4-zlib-1.2.5.2.patch
@ 2012-03-15 18:11 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2012-03-15 18:11 UTC (permalink / raw
  To: gentoo-commits

ssuominen    12/03/15 18:11:44

  Added:                deltup-0.4.4-zlib-1.2.5.2.patch
  Log:
  Fix building with sys-libs/zlib >= 1.2.5.2 wrt #406203. Thanks to Alexander Polozov for reporting.
  
  (Portage version: 2.2.0_alpha90/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  app-portage/deltup/files/deltup-0.4.4-zlib-1.2.5.2.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/deltup/files/deltup-0.4.4-zlib-1.2.5.2.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-portage/deltup/files/deltup-0.4.4-zlib-1.2.5.2.patch?rev=1.1&content-type=text/plain

Index: deltup-0.4.4-zlib-1.2.5.2.patch
===================================================================
Fix building with zlib >= 1.2.5.2, see http://bugs.gentoo.org/406203

--- file.cpp
+++ file.cpp
@@ -20,12 +20,12 @@
 #include "file.h"
 
 GZ_IFStream::GZ_IFStream(string fname) {file = gzopen(fname.c_str(), "rb");}
-GZ_IFStream::~GZ_IFStream() {if (!bad()) gzclose(file);}
-unsigned GZ_IFStream::read(void *data, unsigned num) {return gzread(file, data, num);}
+GZ_IFStream::~GZ_IFStream() {if (!bad()) gzclose((gzFile)file);}
+unsigned GZ_IFStream::read(void *data, unsigned num) {return gzread((gzFile)file, data, num);}
 
 GZ_OFStream::GZ_OFStream(string fname) {file = gzopen(fname.c_str(), "wb");}
-GZ_OFStream::~GZ_OFStream() {gzclose(file);}
-unsigned GZ_OFStream::write(const void *data, unsigned num) {return gzwrite(file, (voidp)data, num);}
+GZ_OFStream::~GZ_OFStream() {gzclose((gzFile)file);}
+unsigned GZ_OFStream::write(const void *data, unsigned num) {return gzwrite((gzFile)file, (voidp)data, num);}
 
 BZ_IFStream::BZ_IFStream(string fname) {file = BZ2_bzopen(fname.c_str(), "rb");}
 BZ_IFStream::~BZ_IFStream() {if (!bad()) BZ2_bzclose(file);}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-15 18:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-15 18:11 [gentoo-commits] gentoo-x86 commit in app-portage/deltup/files: deltup-0.4.4-zlib-1.2.5.2.patch Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox