diff -Naur pdns-2.9.21/modules/ldapbackend/powerldap.cc pdns-2.9.21-p/modules/ldapbackend/powerldap.cc --- pdns-2.9.21/modules/ldapbackend/powerldap.cc 2007-04-21 15:56:36.000000000 +0200 +++ pdns-2.9.21-p/modules/ldapbackend/powerldap.cc 2008-04-13 13:18:07.000000000 +0200 @@ -1,4 +1,6 @@ #include "powerldap.hh" +// for timeval +#include diff -Naur pdns-2.9.21/pdns/dns.hh pdns-2.9.21-p/pdns/dns.hh --- pdns-2.9.21/pdns/dns.hh 2007-04-21 15:56:36.000000000 +0200 +++ pdns-2.9.21-p/pdns/dns.hh 2008-04-13 13:18:07.000000000 +0200 @@ -115,7 +115,7 @@ #pragma pack (pop) #endif -typedef enum { +enum { ns_t_invalid = 0, /* Cookie. */ ns_t_a = 1, /* Host address. */ ns_t_ns = 2, /* Authoritative server. */ diff -Naur pdns-2.9.21/pdns/dynmessenger.cc pdns-2.9.21-p/pdns/dynmessenger.cc --- pdns-2.9.21/pdns/dynmessenger.cc 2007-04-21 15:56:36.000000000 +0200 +++ pdns-2.9.21-p/pdns/dynmessenger.cc 2008-04-13 13:18:07.000000000 +0200 @@ -18,6 +18,7 @@ */ #include "dynmessenger.hh" #include +#include #include #include #include diff -Naur pdns-2.9.21/pdns/misc.hh pdns-2.9.21-p/pdns/misc.hh --- pdns-2.9.21/pdns/misc.hh 2007-04-21 15:56:36.000000000 +0200 +++ pdns-2.9.21-p/pdns/misc.hh 2008-04-13 13:18:07.000000000 +0200 @@ -19,6 +19,7 @@ #ifndef MISC_HH #define MISC_HH #include +#include #if 0 #define RDTSC(qp) \ @@ -234,7 +235,7 @@ return c==' ' || c=='\t' || c=='\r' || c=='\n'; } -inline const char dns_tolower(char c) +inline char dns_tolower(char c) { if(c>='A' && c<='Z') c+='a'-'A';