summaryrefslogtreecommitdiff
path: root/mail/libspf-alt
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2004-05-28 22:54:07 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2004-05-28 22:54:07 +0000
commit5bf9ca5e02b72f6a8e5fd5bba773e52c52819628 (patch)
tree0bacaae52dc007f5c223e3e62ccfb1f2ef6c4839 /mail/libspf-alt
parent- Update to 2.0 pre7 (diff)
fix build on 4.x without libgnugetopt
Submitted by: Daniel Roethlisberger <daniel@roe.ch> (maintainer) Reported by: kris
Notes
Notes: svn path=/head/; revision=110248
Diffstat (limited to 'mail/libspf-alt')
-rw-r--r--mail/libspf-alt/files/patch-bin::spf_example::spf_example.c17
-rw-r--r--mail/libspf-alt/files/patch-bin::spf_example::spf_example_2mx.c17
2 files changed, 34 insertions, 0 deletions
diff --git a/mail/libspf-alt/files/patch-bin::spf_example::spf_example.c b/mail/libspf-alt/files/patch-bin::spf_example::spf_example.c
new file mode 100644
index 000000000000..dc5921cf953d
--- /dev/null
+++ b/mail/libspf-alt/files/patch-bin::spf_example::spf_example.c
@@ -0,0 +1,17 @@
+--- bin/spf_example/spf_example.c.orig Sat Apr 10 00:08:41 2004
++++ bin/spf_example/spf_example.c Fri May 28 22:59:52 2004
+@@ -55,8 +55,12 @@
+ # include <arpa/inet.h> /* in_addr struct */
+ #endif
+
+-#ifdef HAVE_GETOPT_H
+-#include <getopt.h>
++#if defined(__FreeBSD__)
++#if (OSVERSION > 500000)
++#include "getopt.h"
++#else
++#include "unistd.h"
++#endif
+ #endif
+
+
diff --git a/mail/libspf-alt/files/patch-bin::spf_example::spf_example_2mx.c b/mail/libspf-alt/files/patch-bin::spf_example::spf_example_2mx.c
new file mode 100644
index 000000000000..5724506c0ead
--- /dev/null
+++ b/mail/libspf-alt/files/patch-bin::spf_example::spf_example_2mx.c
@@ -0,0 +1,17 @@
+--- bin/spf_example/spf_example_2mx.c.orig Sat Apr 10 00:08:39 2004
++++ bin/spf_example/spf_example_2mx.c Fri May 28 23:00:10 2004
+@@ -56,8 +56,12 @@
+ # include <arpa/inet.h> /* in_addr struct */
+ #endif
+
+-#ifdef HAVE_GETOPT_H
+-#include <getopt.h>
++#if defined(__FreeBSD__)
++#if (OSVERSION > 500000)
++#include "getopt.h"
++#else
++#include "unistd.h"
++#endif
+ #endif
+
+