Browse Source

[1202] Add missing header files

Update all of the RR definition files so that they are complete in
themselves so that they compile in the rdataclass.cc framework,
regardless of what other files are included.
Stephen Morris 13 years ago
parent
commit
59e2ceaf7b

+ 5 - 0
src/lib/dns/gen-rdatacode.py.in

@@ -42,6 +42,10 @@ heading_txt = '''///////////////
 ///////////////
 
 '''
+rrtypeh_txt = '''// Many RR implementation files require definition of RR types.
+#include <dns/rrtype.h>
+
+'''
 
 def import_classdef(class_txt, file):
     content = ''
@@ -200,6 +204,7 @@ def generate_rdatadef(file, basemtime):
         return
     rdata_deffile = open(file, 'w')
     rdata_deffile.write(heading_txt)
+    rdata_deffile.write(rrtypeh_txt)
     rdata_deffile.write(class_definitions)
     rdata_deffile.close()
 

+ 1 - 0
src/lib/dns/rdata/any_255/tsig_250.cc

@@ -23,6 +23,7 @@
 #include <util/encode/base64.h>
 
 #include <dns/messagerenderer.h>
+#include <dns/name.h>
 #include <dns/rdata.h>
 #include <dns/rdataclass.h>
 #include <dns/tsigerror.h>

+ 1 - 0
src/lib/dns/rdata/generic/afsdb_18.cc

@@ -26,6 +26,7 @@
 #include <boost/lexical_cast.hpp>
 
 using namespace std;
+using namespace isc::util;
 using namespace isc::util::str;
 
 // BEGIN_ISC_NAMESPACE

+ 1 - 0
src/lib/dns/rdata/generic/minfo_14.cc

@@ -24,6 +24,7 @@
 
 using namespace std;
 using namespace isc::dns;
+using namespace isc::util;
 
 // BEGIN_ISC_NAMESPACE
 // BEGIN_RDATA_NAMESPACE

+ 1 - 0
src/lib/dns/rdata/generic/rp_17.cc

@@ -24,6 +24,7 @@
 
 using namespace std;
 using namespace isc::dns;
+using namespace isc::util;
 
 // BEGIN_ISC_NAMESPACE
 // BEGIN_RDATA_NAMESPACE