mathgl/mathgl-1.11.2-zlib.patch
D Haley c3bc9e3d51 * Fix FTBFS in mathgl due to new libpng
* Clean up old patch not used anymore
2011-12-10 00:39:38 +00:00

21 lines
379 B
Diff

--- mgl/mgl_data_png.cpp
+++ mgl/mgl_data_png.cpp
@@ -20,6 +20,7 @@
#include <stdlib.h>
#ifndef NO_PNG
#include <png.h>
+#include <zlib.h>
#endif
#include "mgl/mgl_data.h"
#include "mgl/mgl_c.h"
--- mgl/mgl_export.cpp
+++ mgl/mgl_export.cpp
@@ -25,6 +25,7 @@
#include <stdarg.h>
#ifndef NO_PNG
#include <png.h>
+#include <zlib.h>
#endif
#ifdef HAVE_JPEG
extern "C" {