aboutsummaryrefslogtreecommitdiffstats
path: root/mail/postfix23
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2009-07-30 08:22:14 +0800
committermnag <mnag@FreeBSD.org>2009-07-30 08:22:14 +0800
commit28d17a54025593f6f2d80ed27cfc6b1cdb0ae607 (patch)
treefaf836ae1491cb0faa65b6100a6461c3c87b5bf0 /mail/postfix23
parentd3872179baf3ee996fa3fb184130eccc6a1449d8 (diff)
downloadfreebsd-ports-gnome-28d17a54025593f6f2d80ed27cfc6b1cdb0ae607.tar.gz
freebsd-ports-gnome-28d17a54025593f6f2d80ed27cfc6b1cdb0ae607.tar.zst
freebsd-ports-gnome-28d17a54025593f6f2d80ed27cfc6b1cdb0ae607.zip
- Fix build with new closefrom(2)
Reported by: pointyhat
Diffstat (limited to 'mail/postfix23')
-rw-r--r--mail/postfix23/files/patch-src__util__sys_defs.h13
1 files changed, 13 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 */