#36214: windowmaker @0.92.0 compile error with libpng 1.5 --------------------------+-------------------------------- Reporter: martini@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: | Keywords: Port: windowmaker | --------------------------+-------------------------------- Comment (by wolfgang.lux@…): I have been bitten by the just the same bug today. In order to fix WindowMaker, the following patch must be applied to wrlib/png.c: --- wrlib/png.c.orig 2004-10-12 20:22:04.000000000 +0200 +++ wrlib/png.c 2012-10-08 19:41:57.000000000 +0200 @@ -97,7 +97,10 @@ } RErrorCode = RERR_INTERNAL; - if (setjmp(png->jmpbuf)) { +#ifndef png_jmpbuf +# define png_jmpbuf(png) (png)->jmpbuf +#endif + if (setjmp(png_jmpbuf(png))) { fclose(f); png_destroy_read_struct(&png, &pinfo, &einfo); if (image) -- Ticket URL: <https://trac.macports.org/ticket/36214#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS