Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in games-strategy/naev/files: naev-0.5.0-libpng15.patch
Date: Fri, 29 Jul 2011 19:42:23
Message-Id: 20110729194207.E5CEE20051@flycatcher.gentoo.org
1 ssuominen 11/07/29 19:42:07
2
3 Added: naev-0.5.0-libpng15.patch
4 Log:
5 Fix missing zlib.h include for Z_DEFAULT_COMPRESSION after libpng headers got cleaned up.
6
7 (Portage version: 2.2.0_alpha47/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 games-strategy/naev/files/naev-0.5.0-libpng15.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/naev/files/naev-0.5.0-libpng15.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-strategy/naev/files/naev-0.5.0-libpng15.patch?rev=1.1&content-type=text/plain
14
15 Index: naev-0.5.0-libpng15.patch
16 ===================================================================
17 http://code.google.com/p/naev/issues/detail?id=129
18
19 opengl.c: In function ‘write_png’:
20 opengl.c:820:39: error: ‘Z_DEFAULT_COMPRESSION’ undeclared (first use in this function)
21
22 --- src/opengl.c
23 +++ src/opengl.c
24 @@ -39,6 +39,7 @@
25 #include <string.h>
26 #include <stdarg.h> /* va_list for gl_print */
27
28 +#include <zlib.h> /* Z_DEFAULT_COMPRESSION */
29 #include <png.h>
30
31 #include "SDL.h"