From 4e3013cd8d46bc12b506ff9bfcb16ae14bc6cad1 Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Tue, 6 Jul 2004 12:25:14 +0000 Subject: Attempt to fix build for sparc64. Notice from: kris via bento Patch from: Matt Brown (aka author) --- www/srg/files/patch-resolver-test-cpp | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'www/srg/files/patch-resolver-test-cpp') diff --git a/www/srg/files/patch-resolver-test-cpp b/www/srg/files/patch-resolver-test-cpp index 13adeeb83f24..c4053d39c2cb 100644 --- a/www/srg/files/patch-resolver-test-cpp +++ b/www/srg/files/patch-resolver-test-cpp @@ -1,6 +1,24 @@ ---- resolver-test.cpp.orig Mon Jun 28 21:06:59 2004 -+++ resolver-test.cpp Mon Jun 28 21:08:30 2004 -@@ -32,16 +32,16 @@ +--- resolver-test.cpp.orig Mon Jun 7 08:37:17 2004 ++++ resolver-test.cpp Tue Jul 6 16:16:12 2004 +@@ -1,12 +1,15 @@ +-#include "resolver.hh" ++#include ++ + #include ++ ++#include "resolver.hh" + /* + Originally Written by John MacPherson + + */ + + // grrr... stupid intel little endian! +-#define dottedquad(a,b,c,d) (a) + (b << 8) + (c << 16) + (d << 24); ++#define dottedquad(a,b,c,d) htonl((d) + (c << 8) + (b << 16) + (a << 24)); + + int main(void) { + +@@ -32,16 +35,16 @@ } /* Use Root Servers because they are unlikey to change IP */ -- cgit v1.2.3