diff options
author | mnag <mnag@FreeBSD.org> | 2009-07-30 08:22:14 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2009-07-30 08:22:14 +0800 |
commit | 28d17a54025593f6f2d80ed27cfc6b1cdb0ae607 (patch) | |
tree | faf836ae1491cb0faa65b6100a6461c3c87b5bf0 | |
parent | d3872179baf3ee996fa3fb184130eccc6a1449d8 (diff) | |
download | freebsd-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
-rw-r--r-- | mail/postfix23/files/patch-src__util__sys_defs.h | 13 | ||||
-rw-r--r-- | mail/postfix24/files/patch-src__util__sys_defs.h | 13 |
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 */ |