From 28d17a54025593f6f2d80ed27cfc6b1cdb0ae607 Mon Sep 17 00:00:00 2001 From: mnag Date: Thu, 30 Jul 2009 00:22:14 +0000 Subject: - Fix build with new closefrom(2) Reported by: pointyhat --- mail/postfix23/files/patch-src__util__sys_defs.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 mail/postfix23/files/patch-src__util__sys_defs.h (limited to 'mail/postfix23') 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 */ -- cgit