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_sunos.h,v 1.15 2013-11-22 20:51:34 ca Exp $ 1090792Sgshapiro */ 1190792Sgshapiro 1290792Sgshapiro/* 1390792Sgshapiro** platform definitions for SunOS 4.0.3, SunOS 4.1.x and Solaris 2.x 1490792Sgshapiro*/ 1590792Sgshapiro 1690792Sgshapiro#define SM_OS_NAME "sunos" 1790792Sgshapiro 1890792Sgshapiro#ifdef SOLARIS 1990792Sgshapiro/* 2090792Sgshapiro** Solaris 2.x (aka SunOS 5.x) 2190792Sgshapiro** M4 config file is devtools/OS/SunOS.5.x, which defines the SOLARIS macro. 2290792Sgshapiro*/ 2390792Sgshapiro 2490792Sgshapiro# define SM_CONF_LONGLONG 1 2590792Sgshapiro# ifndef SM_CONF_SHM 2690792Sgshapiro# define SM_CONF_SHM 1 2790792Sgshapiro# endif /* SM_CONF_SHM */ 2890792Sgshapiro# ifndef SM_CONF_SEM 2990792Sgshapiro# define SM_CONF_SEM 2 3090792Sgshapiro# endif /* SM_CONF_SEM */ 3190792Sgshapiro# ifndef SM_CONF_MSG 3290792Sgshapiro# define SM_CONF_MSG 1 3390792Sgshapiro# endif /* SM_CONF_MSG */ 3490792Sgshapiro 3590792Sgshapiro#else /* SOLARIS */ 3690792Sgshapiro 3790792Sgshapiro/* 3890792Sgshapiro** SunOS 4.0.3 or 4.1.x 3990792Sgshapiro*/ 4090792Sgshapiro 4190792Sgshapiro# define SM_CONF_SSIZE_T 0 4290792Sgshapiro# ifndef SM_CONF_BROKEN_SIZE_T 4390792Sgshapiro# define SM_CONF_BROKEN_SIZE_T 1 /* size_t is signed? */ 4490792Sgshapiro# endif /* SM_CONF_BROKEN_SIZE_T */ 4590792Sgshapiro 4690792Sgshapiro# ifndef SM_CONF_BROKEN_STRTOD 4790792Sgshapiro# define SM_CONF_BROKEN_STRTOD 1 4890792Sgshapiro# endif /* ! SM_CONF_BROKEN_STRTOD */ 4990792Sgshapiro 5090792Sgshapiro/* has memchr() prototype? (if not: needs memory.h) */ 5190792Sgshapiro# ifndef SM_CONF_MEMCHR 5290792Sgshapiro# define SM_CONF_MEMCHR 0 5390792Sgshapiro# endif /* ! SM_CONF_MEMCHR */ 5490792Sgshapiro 5590792Sgshapiro# ifdef SUNOS403 5690792Sgshapiro 5790792Sgshapiro/* 5890792Sgshapiro** SunOS 4.0.3 5990792Sgshapiro** M4 config file is devtools/OS/SunOS4.0, which defines the SUNOS403 macro. 6090792Sgshapiro*/ 6190792Sgshapiro 6290792Sgshapiro# else /* SUNOS403 */ 6390792Sgshapiro 6490792Sgshapiro/* 6590792Sgshapiro** SunOS 4.1.x 6690792Sgshapiro** M4 config file is devtools/OS/SunOS, which defines no macros. 6790792Sgshapiro*/ 6890792Sgshapiro 6990792Sgshapiro# endif /* SUNOS403 */ 7090792Sgshapiro#endif /* SOLARIS */ 71