aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorclive <clive@FreeBSD.org>2002-08-25 00:30:51 +0800
committerclive <clive@FreeBSD.org>2002-08-25 00:30:51 +0800
commit2f3acc18f6092f5f1665b51136802042578910d4 (patch)
tree05be5a2f42b8cbe3f4c5e86e1fcd2a8116ad81de /mail
parentd9adaad889121a21d2765eb1e7c443d275ae17b7 (diff)
downloadfreebsd-ports-gnome-2f3acc18f6092f5f1665b51136802042578910d4.tar.gz
freebsd-ports-gnome-2f3acc18f6092f5f1665b51136802042578910d4.tar.zst
freebsd-ports-gnome-2f3acc18f6092f5f1665b51136802042578910d4.zip
Fix build on -CURRENT.
Noted by: kris
Diffstat (limited to 'mail')
-rw-r--r--mail/nullmailer/Makefile1
-rw-r--r--mail/nullmailer/files/patch-hostname.cc20
-rw-r--r--mail/nullmailer/files/patch-send.cc10
3 files changed, 31 insertions, 0 deletions
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 <unistd.h>
++#include <string.h>
+ #include <sys/utsname.h>
+
+ 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 <sys/types.h>
+ #include <sys/wait.h>
+ #include <unistd.h>
++#include <stdlib.h>
+ #include "configio.h"
+ #include "defines.h"
+ #include "errcodes.h"