aboutsummaryrefslogtreecommitdiffstats
path: root/mail/libspf-alt
diff options
context:
space:
mode:
authoreik <eik@FreeBSD.org>2004-05-29 06:54:07 +0800
committereik <eik@FreeBSD.org>2004-05-29 06:54:07 +0800
commit7229de00e4941d30ffcaa4e2167c178114cad405 (patch)
tree0465b8a8d02acb4d1c6f164839f9b3f8ceb513d7 /mail/libspf-alt
parentbaf77d066f6910426172b28932323bdd20fe1af7 (diff)
downloadfreebsd-ports-gnome-7229de00e4941d30ffcaa4e2167c178114cad405.tar.gz
freebsd-ports-gnome-7229de00e4941d30ffcaa4e2167c178114cad405.tar.zst
freebsd-ports-gnome-7229de00e4941d30ffcaa4e2167c178114cad405.zip
fix build on 4.x without libgnugetopt
Submitted by: Daniel Roethlisberger <daniel@roe.ch> (maintainer) Reported by: kris
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
+
+