1 /* 2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers. 3 * All rights reserved. 4 * 5 * By using this file, you agree to the terms and conditions set 6 * forth in the LICENSE file which can be found at the top level of 7 * the sendmail distribution. 8 * 9 * $Id: sm_os_freebsd.h,v 1.11 2002/04/15 17:17:05 gshapiro Exp $ 10 */ 11 12 /* 13 ** Platform definitions for FreeBSD 14 */ 15 16 #define SM_OS_NAME "freebsd" 17 18 #define SM_CONF_SYS_CDEFS_H 1 19 20 #if __FreeBSD__ >= 2 21 # include <osreldate.h> /* defines __FreeBSD_version */ 22 # if __FreeBSD_version >= 199512 /* 2.2-current when it appeared */ 23 # define MI_SOMAXCONN -1 /* listen() max backlog for milter */ 24 # endif /* __FreeBSD_version >= 199512 */ 25 # if __FreeBSD_version >= 330000 26 /* 3.3.0-release and later have strlcpy()/strlcat() */ 27 # ifndef SM_CONF_STRL 28 # define SM_CONF_STRL 1 29 # endif 30 # endif 31 #endif 32 33 #ifndef SM_CONF_SHM 34 # define SM_CONF_SHM 1 35 #endif /* SM_CONF_SHM */ 36 #ifndef SM_CONF_SEM 37 # define SM_CONF_SEM 1 38 #endif /* SM_CONF_SEM */ 39 #ifndef SM_CONF_MSG 40 # define SM_CONF_MSG 1 41 #endif /* SM_CONF_MSG */ 42