This problem exist in the 2.7 and 2.8 branch:
In file included from attr_clnt.c:77:
/usr/include/unistd.h:329: error: conflicting types for 'closefrom'
./sys_defs.h:1399: error: previous declaration of 'closefrom' was here
*** Error code 1
Stop in /home/src/postfix-2.7.2/src/util.
*** Error code 1
Stop in /home/src/postfix-2.7.2.
Fix:
src/util/sys_defs.h
114c114
< #if (__FreeBSD_version >= 702104 && __FreeBSD_version < 800000) ||
(__Fversion >= 800099) /* safe; don't believe the experts */
---
> #if __FreeBSD_version >= 800107 /* safe; don't believe thts */
based on:
702104
July 14, 2009
7.2-STABLE after MFC of the closefrom system call.
Ref: http://www.freebsd.org/doc/en/books/porters-handbook/freebsd-versions.html
I can't find the bugreport website for postfix so I do it through this channel.
Kind regards
Kristof Vansant