Blob Blame History Raw
diff -up pdns-2.9.21/pdns/misc.hh.orig pdns-2.9.21/pdns/misc.hh
--- pdns-2.9.21/pdns/misc.hh.orig	2008-02-09 15:32:57.000000000 +0100
+++ pdns-2.9.21/pdns/misc.hh	2008-02-09 15:33:23.000000000 +0100
@@ -19,6 +19,7 @@
 #ifndef MISC_HH
 #define MISC_HH
 #include <stdint.h>
+#include <cstring>
 
 #if 0
 #define RDTSC(qp) \
@@ -234,7 +235,7 @@ inline bool dns_isspace(char c)
   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';
diff -up pdns-2.9.21/pdns/dns.hh.orig pdns-2.9.21/pdns/dns.hh
--- pdns-2.9.21/pdns/dns.hh.orig	2008-02-09 15:37:26.000000000 +0100
+++ pdns-2.9.21/pdns/dns.hh	2008-02-09 15:37:43.000000000 +0100
@@ -115,7 +115,7 @@ struct EDNS0Record 
 #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 -up pdns-2.9.21/modules/ldapbackend/powerldap.cc.orig pdns-2.9.21/modules/ldapbackend/powerldap.cc
--- pdns-2.9.21/modules/ldapbackend/powerldap.cc.orig	2008-02-09 15:41:12.000000000 +0100
+++ pdns-2.9.21/modules/ldapbackend/powerldap.cc	2008-02-09 15:42:17.000000000 +0100
@@ -1,4 +1,6 @@
 #include "powerldap.hh"
+// for timeval
+#include <sys/time.h>
 
 
 
diff -up pdns-2.9.21/pdns/dynmessenger.cc.orig pdns-2.9.21/pdns/dynmessenger.cc
--- pdns-2.9.21/pdns/dynmessenger.cc.orig	2008-02-09 15:47:52.000000000 +0100
+++ pdns-2.9.21/pdns/dynmessenger.cc	2008-02-09 15:48:38.000000000 +0100
@@ -18,6 +18,7 @@
 */
 #include "dynmessenger.hh"
 #include <cstdio>
+#include <cstdlib>
 #include <cstring>
 #include <cerrno>
 #include <iostream>