xref: /freebsd/contrib/sendmail/include/sm/os/sm_os_freebsd.h (revision 6b7c9af44b73355e01755ac7a0fb8ffc608b25ab)
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.10 2002/03/10 22:41:03 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 # ifdef __sparc64__
35 #  define SM_CONF_SHM	0
36 # else /* __sparc64__ */
37 #  define SM_CONF_SHM	1
38 # endif /* __sparc64__ */
39 #endif /* SM_CONF_SHM */
40 #ifndef SM_CONF_SEM
41 # define SM_CONF_SEM	1
42 #endif /* SM_CONF_SEM */
43 #ifndef SM_CONF_MSG
44 # define SM_CONF_MSG	1
45 #endif /* SM_CONF_MSG */
46