diff options
author | keramida <keramida@FreeBSD.org> | 2009-07-09 21:15:07 +0800 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2009-07-09 21:15:07 +0800 |
commit | c708d4a5028b457d3a45a93615aad4f2d2c4c878 (patch) | |
tree | 672364a69546ad321e9e1630f9f64a12924f0f7f | |
parent | fd9d722fee9486f728df190f018692db31427410 (diff) | |
download | freebsd-ports-gnome-c708d4a5028b457d3a45a93615aad4f2d2c4c878.tar.gz freebsd-ports-gnome-c708d4a5028b457d3a45a93615aad4f2d2c4c878.tar.zst freebsd-ports-gnome-c708d4a5028b457d3a45a93615aad4f2d2c4c878.zip |
Patch the src/util/sys_defs.h file of Postfix to fix the build on
FreeBSD-8.0 after the new closefrom() system call was added.
PR: ports/136459
Submitted by: Eygene Ryabinkin
Approved by: erwin (portmgr), Sahil Tandon (maintainer)
-rw-r--r-- | mail/postfix/files/patch-src::util::sys_defs.h | 18 | ||||
-rw-r--r-- | mail/postfix25/files/patch-src::util::sys_defs.h | 18 | ||||
-rw-r--r-- | mail/postfix26/files/patch-src::util::sys_defs.h | 18 | ||||
-rw-r--r-- | mail/postfix27/files/patch-src::util::sys_defs.h | 18 | ||||
-rw-r--r-- | mail/postfix28/files/patch-src::util::sys_defs.h | 18 |
5 files changed, 90 insertions, 0 deletions
diff --git a/mail/postfix/files/patch-src::util::sys_defs.h b/mail/postfix/files/patch-src::util::sys_defs.h new file mode 100644 index 000000000000..abccef25f52c --- /dev/null +++ b/mail/postfix/files/patch-src::util::sys_defs.h @@ -0,0 +1,18 @@ +--- src/util/sys_defs.h.orig 2009-07-08 13:38:52.000000000 +0400 ++++ src/util/sys_defs.h 2009-07-08 13:46:41.000000000 +0400 +@@ -110,6 +110,15 @@ + #define HAS_DUPLEX_PIPE /* 4.1 breaks with kqueue(2) */ + #endif + ++#if __FreeBSD_version >= 800100 /* ++ * Actually, slightly before, ++ * but we can't say precisely ++ * when -- FreeBSD wasn't bumped ++ * for closefrom() addition ++ */ ++#define HAS_CLOSEFROM ++#endif ++ + /* OpenBSD version is year+month */ + + #if OpenBSD >= 199805 /* XXX */ diff --git a/mail/postfix25/files/patch-src::util::sys_defs.h b/mail/postfix25/files/patch-src::util::sys_defs.h new file mode 100644 index 000000000000..abccef25f52c --- /dev/null +++ b/mail/postfix25/files/patch-src::util::sys_defs.h @@ -0,0 +1,18 @@ +--- src/util/sys_defs.h.orig 2009-07-08 13:38:52.000000000 +0400 ++++ src/util/sys_defs.h 2009-07-08 13:46:41.000000000 +0400 +@@ -110,6 +110,15 @@ + #define HAS_DUPLEX_PIPE /* 4.1 breaks with kqueue(2) */ + #endif + ++#if __FreeBSD_version >= 800100 /* ++ * Actually, slightly before, ++ * but we can't say precisely ++ * when -- FreeBSD wasn't bumped ++ * for closefrom() addition ++ */ ++#define HAS_CLOSEFROM ++#endif ++ + /* OpenBSD version is year+month */ + + #if OpenBSD >= 199805 /* XXX */ diff --git a/mail/postfix26/files/patch-src::util::sys_defs.h b/mail/postfix26/files/patch-src::util::sys_defs.h new file mode 100644 index 000000000000..abccef25f52c --- /dev/null +++ b/mail/postfix26/files/patch-src::util::sys_defs.h @@ -0,0 +1,18 @@ +--- src/util/sys_defs.h.orig 2009-07-08 13:38:52.000000000 +0400 ++++ src/util/sys_defs.h 2009-07-08 13:46:41.000000000 +0400 +@@ -110,6 +110,15 @@ + #define HAS_DUPLEX_PIPE /* 4.1 breaks with kqueue(2) */ + #endif + ++#if __FreeBSD_version >= 800100 /* ++ * Actually, slightly before, ++ * but we can't say precisely ++ * when -- FreeBSD wasn't bumped ++ * for closefrom() addition ++ */ ++#define HAS_CLOSEFROM ++#endif ++ + /* OpenBSD version is year+month */ + + #if OpenBSD >= 199805 /* XXX */ diff --git a/mail/postfix27/files/patch-src::util::sys_defs.h b/mail/postfix27/files/patch-src::util::sys_defs.h new file mode 100644 index 000000000000..abccef25f52c --- /dev/null +++ b/mail/postfix27/files/patch-src::util::sys_defs.h @@ -0,0 +1,18 @@ +--- src/util/sys_defs.h.orig 2009-07-08 13:38:52.000000000 +0400 ++++ src/util/sys_defs.h 2009-07-08 13:46:41.000000000 +0400 +@@ -110,6 +110,15 @@ + #define HAS_DUPLEX_PIPE /* 4.1 breaks with kqueue(2) */ + #endif + ++#if __FreeBSD_version >= 800100 /* ++ * Actually, slightly before, ++ * but we can't say precisely ++ * when -- FreeBSD wasn't bumped ++ * for closefrom() addition ++ */ ++#define HAS_CLOSEFROM ++#endif ++ + /* OpenBSD version is year+month */ + + #if OpenBSD >= 199805 /* XXX */ diff --git a/mail/postfix28/files/patch-src::util::sys_defs.h b/mail/postfix28/files/patch-src::util::sys_defs.h new file mode 100644 index 000000000000..abccef25f52c --- /dev/null +++ b/mail/postfix28/files/patch-src::util::sys_defs.h @@ -0,0 +1,18 @@ +--- src/util/sys_defs.h.orig 2009-07-08 13:38:52.000000000 +0400 ++++ src/util/sys_defs.h 2009-07-08 13:46:41.000000000 +0400 +@@ -110,6 +110,15 @@ + #define HAS_DUPLEX_PIPE /* 4.1 breaks with kqueue(2) */ + #endif + ++#if __FreeBSD_version >= 800100 /* ++ * Actually, slightly before, ++ * but we can't say precisely ++ * when -- FreeBSD wasn't bumped ++ * for closefrom() addition ++ */ ++#define HAS_CLOSEFROM ++#endif ++ + /* OpenBSD version is year+month */ + + #if OpenBSD >= 199805 /* XXX */ |