2 * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
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.
9 * $Id: sm_os_freebsd.h,v 1.11 2002/04/15 17:17:05 gshapiro Exp $
13 ** Platform definitions for FreeBSD
16 #define SM_OS_NAME "freebsd"
18 #define SM_CONF_SYS_CDEFS_H 1
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() */
28 # define SM_CONF_STRL 1
34 # define SM_CONF_SHM 1
35 #endif /* SM_CONF_SHM */
37 # define SM_CONF_SEM 1
38 #endif /* SM_CONF_SEM */
40 # define SM_CONF_MSG 1
41 #endif /* SM_CONF_MSG */
43 #ifndef SM_IPNODEBYNAME_FLAGS
44 # define SM_IPNODEBYNAME_FLAGS AI_DEFAULT|AI_ALL
45 #endif /* SM_IPNODEBYNAME_FLAGS */