[Pdns-dev] endian.h patch for SunOS (Solaris)

a b tripivceta at hotmail.com
Mon Apr 2 19:56:03 CEST 2012


> - sys/endian.h needs to be included instead of endian.h on NetBSD
> (similar to FreeBSD and OpenBSD) in ext/polarssl-1.1./library/net.c:
>
> diff -ur pdns-3.1-rc1.20120327.2539.orig/pdns/ext/polarssl-1.1.1/library/net.c pdns-3.1-rc1.20120327.2539/pdns/ext/polarssl-1.1.1/library/net.c
> --- pdns-3.1-rc1.20120327.2539.orig/pdns/ext/polarssl-1.1.1/library/net.c 2012-03-27 21:55:08.000000000 +0100
> +++ pdns-3.1-rc1.20120327.2539/pdns/ext/polarssl-1.1.1/library/net.c 2012-04-01 13:39:56.000000000 +0100
> @@ -59,7 +59,7 @@
> #include <netdb.h>
> #include <errno.h>
>
> -#if defined(__FreeBSD__) || defined(__OpenBSD__)
> +#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
> #include <sys/endian.h>
> #elif defined(__APPLE__)
> #include <machine/endian.h>

...And here is a patch for SunOS 5.10 (Solaris 10) for the above, (also as an attachment to this e-mail):

--- pdns/ext/polarssl/library/net.c.orig        Mon Apr  2 13:38:22 2012
+++ pdns/ext/polarssl/library/net.c     Mon Apr  2 13:39:31 2012
@@ -59,6 +59,8 @@
 #include <sys/endian.h>
 #elif defined(__APPLE__)
 #include <machine/endian.h>
+#elif defined(sun)
+#include <sys/isa_defs.h>
 #else
 #include <endian.h>
 #endif

 		 	   		  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: net.c.patch
Type: text/x-patch
Size: 319 bytes
Desc: not available
URL: <http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20120402/8f370825/attachment.bin>


More information about the Pdns-dev mailing list