diff -c -r postfix-2.6.5.orig/makedefs postfix-2.6.5/makedefs *** postfix-2.6.5.orig/makedefs Mon May 11 21:26:46 2009 --- postfix-2.6.5/makedefs Fri Jan 1 14:07:16 2010 *************** *** 144,149 **** --- 144,151 ---- ;; FreeBSD.7*) SYSTYPE=FREEBSD7 ;; + FreeBSD.8*) SYSTYPE=FREEBSD8 + ;; OpenBSD.2*) SYSTYPE=OPENBSD2 ;; OpenBSD.3*) SYSTYPE=OPENBSD3 diff -c -r postfix-2.6.5.orig/src/util/sys_defs.h postfix-2.6.5/src/util/sys_defs.h *** postfix-2.6.5.orig/src/util/sys_defs.h Mon May 11 00:45:27 2009 --- postfix-2.6.5/src/util/sys_defs.h Fri Jan 1 14:07:24 2010 *************** *** 25,30 **** --- 25,31 ---- */ #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \ || defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \ + || defined(FREEBSD8) \ || defined(BSDI2) || defined(BSDI3) || defined(BSDI4) \ || defined(OPENBSD2) || defined(OPENBSD3) || defined(OPENBSD4) \ || defined(NETBSD1) || defined(NETBSD2) || defined(NETBSD3) \ *************** *** 110,115 **** --- 111,120 ---- #define HAS_DUPLEX_PIPE /* 4.1 breaks with kqueue(2) */ #endif + #if __FreeBSD_version >= 800000 + #define HAS_CLOSEFROM + #endif + /* OpenBSD version is year+month */ #if OpenBSD >= 199805 /* XXX */