bb7118c
diff -up pdns-2.9.21/pdns/misc.hh.orig pdns-2.9.21/pdns/misc.hh
bb7118c
--- pdns-2.9.21/pdns/misc.hh.orig	2008-02-09 15:32:57.000000000 +0100
bb7118c
+++ pdns-2.9.21/pdns/misc.hh	2008-02-09 15:33:23.000000000 +0100
bb7118c
@@ -19,6 +19,7 @@
bb7118c
 #ifndef MISC_HH
bb7118c
 #define MISC_HH
bb7118c
 #include <stdint.h>
bb7118c
+#include <cstring>
bb7118c
 
bb7118c
 #if 0
bb7118c
 #define RDTSC(qp) \
bb7118c
@@ -234,7 +235,7 @@ inline bool dns_isspace(char c)
bb7118c
   return c==' ' || c=='\t' || c=='\r' || c=='\n';
bb7118c
 }
bb7118c
 
bb7118c
-inline const char dns_tolower(char c)
bb7118c
+inline char dns_tolower(char c)
bb7118c
 {
bb7118c
   if(c>='A' && c<='Z')
bb7118c
     c+='a'-'A';
bb7118c
diff -up pdns-2.9.21/pdns/dns.hh.orig pdns-2.9.21/pdns/dns.hh
bb7118c
--- pdns-2.9.21/pdns/dns.hh.orig	2008-02-09 15:37:26.000000000 +0100
bb7118c
+++ pdns-2.9.21/pdns/dns.hh	2008-02-09 15:37:43.000000000 +0100
bb7118c
@@ -115,7 +115,7 @@ struct EDNS0Record 
bb7118c
 #pragma pack (pop)
bb7118c
 #endif 
bb7118c
 
bb7118c
-typedef enum  {
bb7118c
+enum  {
bb7118c
         ns_t_invalid = 0,       /* Cookie. */
bb7118c
         ns_t_a = 1,             /* Host address. */
bb7118c
         ns_t_ns = 2,            /* Authoritative server. */
bb7118c
diff -up pdns-2.9.21/modules/ldapbackend/powerldap.cc.orig pdns-2.9.21/modules/ldapbackend/powerldap.cc
bb7118c
--- pdns-2.9.21/modules/ldapbackend/powerldap.cc.orig	2008-02-09 15:41:12.000000000 +0100
bb7118c
+++ pdns-2.9.21/modules/ldapbackend/powerldap.cc	2008-02-09 15:42:17.000000000 +0100
bb7118c
@@ -1,4 +1,6 @@
bb7118c
 #include "powerldap.hh"
bb7118c
+// for timeval
bb7118c
+#include <sys/time.h>
bb7118c
 
bb7118c
 
bb7118c
 
bb7118c
diff -up pdns-2.9.21/pdns/dynmessenger.cc.orig pdns-2.9.21/pdns/dynmessenger.cc
bb7118c
--- pdns-2.9.21/pdns/dynmessenger.cc.orig	2008-02-09 15:47:52.000000000 +0100
bb7118c
+++ pdns-2.9.21/pdns/dynmessenger.cc	2008-02-09 15:48:38.000000000 +0100
bb7118c
@@ -18,6 +18,7 @@
bb7118c
 */
bb7118c
 #include "dynmessenger.hh"
bb7118c
 #include <cstdio>
bb7118c
+#include <cstdlib>
bb7118c
 #include <cstring>
bb7118c
 #include <cerrno>
bb7118c
 #include <iostream>