diff --git a/program/src/pngsize.c b/program/src/pngsize.c
index f38cd0de8e0fbd8354d8460cc7f755bc13321d15..5818eb0c555f6492c17971b6c2f62e6eef60000e 100644 (file)
--- a/program/src/pngsize.c
+++ b/program/src/pngsize.c
/*****************************************************************************
- * RRDtool 1.2rc9 Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.6 Copyright by Tobi Oetiker, 1997-2005
*****************************************************************************
* pngsize.c determine the size of a PNG image
*****************************************************************************/
(*width)=0;
(*height)=0;
+/* this is to make compile on aix work since they seem to define jmpbuf
+ to be _jmpbuf which breaks compilation */
+
+#ifdef jmpbuf
+#undef jmpbuf
+#endif
+
if (setjmp(png_read_ptr->jmpbuf)){
png_destroy_read_struct(&png_read_ptr, &info_ptr, (png_infopp)NULL);
return 0;