From 45c5547a8b309aa9196a17575a935c9fcdb6912f Mon Sep 17 00:00:00 2001 From: Kirill Ponomarev Date: Sat, 9 Oct 2004 07:45:54 +0000 Subject: [PATCH] Fix build with gcc-3.4 PR: ports/72302 Submitted by: maintainer Approved by: portmgr (implicit) --- dns/fastresolve/Makefile | 4 ---- .../files/patch-dns-terror::dns-terror.cc | 12 ++++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 dns/fastresolve/files/patch-dns-terror::dns-terror.cc diff --git a/dns/fastresolve/Makefile b/dns/fastresolve/Makefile index 34027b02b9f3..41fe08be6dff 100644 --- a/dns/fastresolve/Makefile +++ b/dns/fastresolve/Makefile @@ -51,10 +51,6 @@ MAN1= dns-terror.1 btree-dump.1 convert-dom-db.1 convert-ip-db.1 \ .include -.if ${OSVERSION} >= 502126 -BROKEN= "Does not compile on FreeBSD >= 5.x" -.endif - post-install: .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} diff --git a/dns/fastresolve/files/patch-dns-terror::dns-terror.cc b/dns/fastresolve/files/patch-dns-terror::dns-terror.cc new file mode 100644 index 000000000000..d7c881f32122 --- /dev/null +++ b/dns/fastresolve/files/patch-dns-terror::dns-terror.cc @@ -0,0 +1,12 @@ +--- dns-terror/dns-terror.cc.orig Mon Oct 4 13:28:02 2004 ++++ dns-terror/dns-terror.cc Mon Oct 4 13:28:53 2004 +@@ -331,8 +331,7 @@ + } + + r = adns_submit(ads, rev, adns_r_ptr_raw, +- (enum adns_queryflags) +- (adns_qf_quoteok_cname|adns_qf_quoteok_anshost), lp, &qu); ++ adns_queryflags (adns_qf_quoteok_cname|adns_qf_quoteok_anshost), lp, &qu); + if (r) + fatal_errno("adns_submit", r); + if (verbose)