190792Sgshapiro/* 2261194Sgshapiro * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers. 390792Sgshapiro * All rights reserved. 490792Sgshapiro * 590792Sgshapiro * By using this file, you agree to the terms and conditions set 690792Sgshapiro * forth in the LICENSE file which can be found at the top level of 790792Sgshapiro * the sendmail distribution. 890792Sgshapiro * 9266527Sgshapiro * $Id: sm_os_freebsd.h,v 1.12 2013-11-22 20:51:34 ca Exp $ 1090792Sgshapiro */ 1190792Sgshapiro 1290792Sgshapiro/* 1390792Sgshapiro** Platform definitions for FreeBSD 1490792Sgshapiro*/ 1590792Sgshapiro 1690792Sgshapiro#define SM_OS_NAME "freebsd" 1790792Sgshapiro 1890792Sgshapiro#define SM_CONF_SYS_CDEFS_H 1 1990792Sgshapiro 2090792Sgshapiro#if __FreeBSD__ >= 2 2190792Sgshapiro# include <osreldate.h> /* defines __FreeBSD_version */ 2290792Sgshapiro# if __FreeBSD_version >= 199512 /* 2.2-current when it appeared */ 2390792Sgshapiro# define MI_SOMAXCONN -1 /* listen() max backlog for milter */ 2490792Sgshapiro# endif /* __FreeBSD_version >= 199512 */ 2590792Sgshapiro# if __FreeBSD_version >= 330000 2690792Sgshapiro /* 3.3.0-release and later have strlcpy()/strlcat() */ 2790792Sgshapiro# ifndef SM_CONF_STRL 2890792Sgshapiro# define SM_CONF_STRL 1 2990792Sgshapiro# endif 3090792Sgshapiro# endif 3190792Sgshapiro#endif 3290792Sgshapiro 3390792Sgshapiro#ifndef SM_CONF_SHM 3495154Sgshapiro# define SM_CONF_SHM 1 3590792Sgshapiro#endif /* SM_CONF_SHM */ 3690792Sgshapiro#ifndef SM_CONF_SEM 3790792Sgshapiro# define SM_CONF_SEM 1 3890792Sgshapiro#endif /* SM_CONF_SEM */ 3990792Sgshapiro#ifndef SM_CONF_MSG 4090792Sgshapiro# define SM_CONF_MSG 1 4190792Sgshapiro#endif /* SM_CONF_MSG */ 42