[Pdns-dev] [PATCH] Compile on generic BSD
Roy Marples
roy at marples.name
Tue Apr 21 15:39:09 CEST 2009
Hi List
dns.hh has #ifdef for FreeBSD and APPLE.
It would be better to include <sys/param.h> and then test for the BSD
define. This allows compilation on NetBSD, DragonFly and probably others
too.
Thanks
Roy
-------------- next part --------------
Index: dns.hh
===================================================================
--- dns.hh (revision 1354)
+++ dns.hh (working copy)
@@ -170,10 +170,11 @@
ns_t_any = 255, /* Wildcard match. */
};
+#include <sys/param.h>
#ifdef WIN32
#define BYTE_ORDER 1
#define LITTLE_ENDIAN 1
-#elif __FreeBSD__ || __APPLE__
+#elif BSD
#include <machine/endian.h>
#elif __linux__
# include <endian.h>
More information about the Pdns-dev
mailing list