[Pdns-users] PowerDNS version 2.9.19 released!
Juergen Georgi
georgi at belwue.de
Fri Nov 4 15:11:14 UTC 2005
Hello,
in order to make the recursor compile on solaris 8 (gcc 3.3.2)
I applied the attached diffs. I'm not sure if the patch is
ok, but the binary works - although not heavily tested.
Regards,
-Juergen Georgi
-------------- next part --------------
--- dnsparser.cc.orig Thu Oct 27 08:55:52 2005
+++ dnsparser.cc Thu Nov 3 15:44:27 2005
@@ -305,7 +305,7 @@
return ret;
}
-u_int8_t PacketReader::get8BitInt()
+uint8_t PacketReader::get8BitInt()
{
return d_content.at(d_pos++);
}
@@ -330,7 +330,7 @@
return ret;
}
-void PacketReader::getLabelFromContent(const vector<u_int8_t>& content, uint16_t& frompos, string& ret, int recurs)
+void PacketReader::getLabelFromContent(const vector<uint8_t>& content, uint16_t& frompos, string& ret, int recurs)
{
if(recurs > 10)
throw MOADNSException("Loop");
--- dnswriter.hh.orig Sun Oct 16 13:14:32 2005
+++ dnswriter.hh Thu Nov 3 15:35:27 2005
@@ -4,7 +4,7 @@
#include <string>
#include <vector>
#include <map>
-#include <stdint.h>
+/* #include <stdint.h> */
#include <netinet/in.h>
#include <arpa/nameser.h>
--- rcpgenerator.hh.orig Sat Oct 8 15:48:50 2005
+++ rcpgenerator.hh Thu Nov 3 15:40:53 2005
@@ -22,7 +22,7 @@
#include <string>
#include <stdexcept>
-#include <stdint.h>
+/* #include <stdint.h> */
using namespace std;
--- sillyrecords.cc.orig Sat Sep 3 20:12:43 2005
+++ sillyrecords.cc Thu Nov 3 15:25:18 2005
@@ -99,10 +99,10 @@
/* converts ascii size/precision X * 10**Y(cm) to 0xXY. moves pointer.*/
-static u_int8_t precsize_aton(const char **strptr)
+static uint8_t precsize_aton(const char **strptr)
{
unsigned int mval = 0, cmval = 0;
- u_int8_t retval = 0;
+ uint8_t retval = 0;
const char *cp;
int exponent;
int mantissa;
@@ -243,9 +243,9 @@
uint32_t latit = 0, longit = 0, alt = 0;
uint32_t lltemp1 = 0, lltemp2 = 0;
int altmeters = 0, altfrac = 0, altsign = 1;
- u_int8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */
- u_int8_t vp = 0x13; /* default = 1e3 cm = 10.00m */
- u_int8_t siz = 0x12; /* default = 1e2 cm = 1.00m */
+ uint8_t hp = 0x16; /* default = 1e6 cm = 10000.00m = 10km */
+ uint8_t vp = 0x13; /* default = 1e3 cm = 10.00m */
+ uint8_t siz = 0x12; /* default = 1e2 cm = 1.00m */
int which1 = 0, which2 = 0;
cp = content.c_str();
More information about the Pdns-users
mailing list