Hi! png-1.5 hides structure members from public view. For this reason, some code doesn't compile any more. The attached patch fixes this.
I'll also attach a patch that improves DragonFly BSD Support for enigma, please include this as well. Thanks, Thomas
$NetBSD: patch-aa,v 1.3 2009/06/05 07:04:11 hasso Exp $ --- lib-src/enet/unix.c.orig 2009-06-05 02:24:08 +0300 +++ lib-src/enet/unix.c 2009-06-05 02:26:23 +0300 @@ -8,6 +8,7 @@ #include <sys/socket.h> #include <sys/ioctl.h> #include <sys/time.h> +#include <sys/param.h> #include <arpa/inet.h> #include <netdb.h> #include <unistd.h> @@ -80,7 +81,7 @@ enet_address_set_host (ENetAddress * add char buffer [2048]; int errnum; -#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) +#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) || (defined(__DragonFly__) && __DragonFly_version >= 200202) gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); #else hostEntry = gethostbyname_r (name, & hostData, buffer, sizeof (buffer), & errnum); @@ -118,7 +119,7 @@ enet_address_get_host (const ENetAddress in.s_addr = address -> host; -#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) +#if defined(linux) || defined(__GLIBC__) || defined(__GNU__) || (defined(__DragonFly__) && __DragonFly_version >= 200202) gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & hostEntry, & errnum); #else hostEntry = gethostbyaddr_r ((char *) & in, sizeof (struct in_addr), AF_INET, & hostData, buffer, sizeof (buffer), & errnum);
$NetBSD: patch-lib-src_enigma-core_IMG__SavePNG.c,v 1.1 2011/02/01 00:08:48 wiz Exp $ Fix build with png-1.5. --- lib-src/enigma-core/IMG_SavePNG.c.orig 2005-11-24 23:17:06.000000000 +0000 +++ lib-src/enigma-core/IMG_SavePNG.c @@ -84,7 +84,7 @@ int IMG_SavePNG_RW(SDL_Surface *face, SD png_bytep *row_pointers = 0; /* Set error handling. */ - if (setjmp(png_ptr->jmpbuf)) { + if (setjmp(png_jmpbuf(png_ptr))) { IMG_SetError("Error writing the PNG file"); } else {
_______________________________________________ Enigma-devel mailing list Enigma-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/enigma-devel