--- clamav-milter/clamav-milter.c.orig Sun Nov 30 00:12:06 2003 +++ clamav-milter/clamav-milter.c Sun Nov 30 14:28:52 2003 @@ -244,7 +244,7 @@ #include #include -#ifndef TARGET_OS_FREEBSD +#if !( defined TARGET_OS_FREEBSD || defined TARGET_OS_DARWIN7_0_0 ) #include #endif #include @@ -699,7 +699,11 @@ open("/dev/null", O_RDONLY); if(open("/dev/console", O_WRONLY) == 1) dup(1); +#if ( defined TARGET_OS_FREEBSD || defined TARGET_OS_DARWIN7_0_0 ) + setpgrp(0,0); +#else setpgrp(); +#endif } if(smfi_setconn(port) == MI_FAILURE) {