aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClive Lin <clive@FreeBSD.org>2002-08-24 16:30:51 +0000
committerClive Lin <clive@FreeBSD.org>2002-08-24 16:30:51 +0000
commit2194deb508aa1ffe76e9837c83bb95994b547ed7 (patch)
tree7e47f7d683ae5e549aaffd6b4cbeb9fc91cf4cf5
parent76259000dd66961bcfd162fafdbad82ae272f6a6 (diff)
downloadports-2194deb508aa1ffe76e9837c83bb95994b547ed7.tar.gz
ports-2194deb508aa1ffe76e9837c83bb95994b547ed7.zip
Notes
-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"