aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/postfix23/files/patch-src__util__sys_defs.h13
-rw-r--r--mail/postfix24/files/patch-src__util__sys_defs.h13
2 files changed, 26 insertions, 0 deletions
diff --git a/mail/postfix23/files/patch-src__util__sys_defs.h b/mail/postfix23/files/patch-src__util__sys_defs.h
new file mode 100644
index 000000000000..22119b906d2f
--- /dev/null
+++ b/mail/postfix23/files/patch-src__util__sys_defs.h
@@ -0,0 +1,13 @@
+--- src/util/sys_defs.h.orig 2009-07-29 16:58:28.000000000 -0300
++++ src/util/sys_defs.h 2009-07-29 16:59:15.000000000 -0300
+@@ -110,6 +110,10 @@
+ #define HAS_DUPLEX_PIPE /* 4.1 breaks with kqueue(2) */
+ #endif
+
++#if (__FreeBSD_version >= 702104 && __FreeBSD_version < 800000) || (__FreeBSD_version >= 800099)
++#define HAS_CLOSEFROM
++#endif
++
+ /* OpenBSD version is year+month */
+
+ #if OpenBSD >= 199805 /* XXX */
diff --git a/mail/postfix24/files/patch-src__util__sys_defs.h b/mail/postfix24/files/patch-src__util__sys_defs.h
new file mode 100644
index 000000000000..22119b906d2f
--- /dev/null
+++ b/mail/postfix24/files/patch-src__util__sys_defs.h
@@ -0,0 +1,13 @@
+--- src/util/sys_defs.h.orig 2009-07-29 16:58:28.000000000 -0300
++++ src/util/sys_defs.h 2009-07-29 16:59:15.000000000 -0300
+@@ -110,6 +110,10 @@
+ #define HAS_DUPLEX_PIPE /* 4.1 breaks with kqueue(2) */
+ #endif
+
++#if (__FreeBSD_version >= 702104 && __FreeBSD_version < 800000) || (__FreeBSD_version >= 800099)
++#define HAS_CLOSEFROM
++#endif
++
+ /* OpenBSD version is year+month */
+
+ #if OpenBSD >= 199805 /* XXX */