From 2194deb508aa1ffe76e9837c83bb95994b547ed7 Mon Sep 17 00:00:00 2001 From: Clive Lin Date: Sat, 24 Aug 2002 16:30:51 +0000 Subject: Fix build on -CURRENT. Noted by: kris --- mail/nullmailer/Makefile | 1 + mail/nullmailer/files/patch-hostname.cc | 20 ++++++++++++++++++++ mail/nullmailer/files/patch-send.cc | 10 ++++++++++ 3 files changed, 31 insertions(+) create mode 100644 mail/nullmailer/files/patch-hostname.cc create mode 100644 mail/nullmailer/files/patch-send.cc (limited to 'mail/nullmailer') diff --git a/mail/nullmailer/Makefile b/mail/nullmailer/Makefile index 6fe94c3ce6aa..6685e9822784 100644 --- a/mail/nullmailer/Makefile +++ b/mail/nullmailer/Makefile @@ -19,6 +19,7 @@ MAINTAINER= clive@FreeBSD.org HAS_CONFIGURE= yes +CXXFLAGS+= -lstdc++ MAN1= nullmailer-inject.1 sendmail.1 MAN7= nullmailer.7 MAN8= nullmailer-queue.8 nullmailer-send.8 diff --git a/mail/nullmailer/files/patch-hostname.cc b/mail/nullmailer/files/patch-hostname.cc new file mode 100644 index 000000000000..d4c8f443b129 --- /dev/null +++ b/mail/nullmailer/files/patch-hostname.cc @@ -0,0 +1,20 @@ +--- lib/hostname.cc.orig Sun Aug 25 00:04:39 2002 ++++ lib/hostname.cc Sun Aug 25 00:06:23 2002 +@@ -22,6 +22,7 @@ + #include "config.h" + #include "mystring/mystring.h" + #include ++#include + #include + + static mystring* hostname_cache = 0; +@@ -30,7 +31,9 @@ + #ifdef HAVE_GETDOMAINNAME + // Re-declare the prototype here, as some systems don't declare it + // in a predictable header file. ++#if __FreeBSD_version > 500034 + extern "C" int getdomainname(); ++#endif + #endif + + static void getnames() diff --git a/mail/nullmailer/files/patch-send.cc b/mail/nullmailer/files/patch-send.cc new file mode 100644 index 000000000000..f1e579dc3702 --- /dev/null +++ b/mail/nullmailer/files/patch-send.cc @@ -0,0 +1,10 @@ +--- src/send.cc.orig Sun Aug 25 00:09:37 2002 ++++ src/send.cc Sun Aug 25 00:10:05 2002 +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include "configio.h" + #include "defines.h" + #include "errcodes.h" -- cgit v1.2.3