FYI for FreeBSD users of the latest -CURRENT. I will not be able to test this until later this week / weekend, but just in case someone else runs into a similar problem. I know FreeBSD 8 is not "supported" as per the current makedefs, but there are still some people building on there. :)
At first glance appears to be similar to an issue with Solaris some time ago. ----- Forwarded message from "Max N. Boyarov" <[email protected]> ----- Date: Wed, 8 Jul 2009 14:25:42 +0300 From: "Max N. Boyarov" <[email protected]> To: [email protected] Subject: [mail/postfix]: don't build on latest current Hi, possibly after commit r194262 mail/postfix port don't build on FreeBSD 8.0-CURRENT build fail with: -- In file included from attr_clnt.c:77: /usr/include/unistd.h:329: error: conflicting types for 'closefrom' ./sys_defs.h:1395: error: previous declaration of 'closefrom' was here *** Error code 1 Stop in /usr/ports/mail/postfix/work/postfix-2.6.2/src/util. *** Error code 1 attached patch seems to fix build. -- Max N. Boyarov ----- End forwarded message -----
--- ./src/util/sys_defs.h.orig 2009-07-08 14:14:16.000000000 +0300 +++ ./src/util/sys_defs.h 2009-07-08 14:17:07.000000000 +0300 @@ -110,6 +110,11 @@ #define HAS_DUPLEX_PIPE /* 4.1 breaks with kqueue(2) */ #endif +/* commit: r194262 */ +#if __FreeBSD_version >= 800098 +#define HAS_CLOSEFROM +#endif + /* OpenBSD version is year+month */ #if OpenBSD >= 199805 /* XXX */
