140266059SGregory Neil Shapiro /* 25dd76dd0SGregory Neil Shapiro * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers. 340266059SGregory Neil Shapiro * All rights reserved. 440266059SGregory Neil Shapiro * 540266059SGregory Neil Shapiro * By using this file, you agree to the terms and conditions set 640266059SGregory Neil Shapiro * forth in the LICENSE file which can be found at the top level of 740266059SGregory Neil Shapiro * the sendmail distribution. 840266059SGregory Neil Shapiro * 9*4313cc83SGregory Neil Shapiro * $Id: sm_os_sunos.h,v 1.15 2013-11-22 20:51:34 ca Exp $ 1040266059SGregory Neil Shapiro */ 1140266059SGregory Neil Shapiro 1240266059SGregory Neil Shapiro /* 1340266059SGregory Neil Shapiro ** platform definitions for SunOS 4.0.3, SunOS 4.1.x and Solaris 2.x 1440266059SGregory Neil Shapiro */ 1540266059SGregory Neil Shapiro 1640266059SGregory Neil Shapiro #define SM_OS_NAME "sunos" 1740266059SGregory Neil Shapiro 1840266059SGregory Neil Shapiro #ifdef SOLARIS 1940266059SGregory Neil Shapiro /* 2040266059SGregory Neil Shapiro ** Solaris 2.x (aka SunOS 5.x) 2140266059SGregory Neil Shapiro ** M4 config file is devtools/OS/SunOS.5.x, which defines the SOLARIS macro. 2240266059SGregory Neil Shapiro */ 2340266059SGregory Neil Shapiro 2440266059SGregory Neil Shapiro # define SM_CONF_LONGLONG 1 2540266059SGregory Neil Shapiro # ifndef SM_CONF_SHM 2640266059SGregory Neil Shapiro # define SM_CONF_SHM 1 2740266059SGregory Neil Shapiro # endif /* SM_CONF_SHM */ 2840266059SGregory Neil Shapiro # ifndef SM_CONF_SEM 2940266059SGregory Neil Shapiro # define SM_CONF_SEM 2 3040266059SGregory Neil Shapiro # endif /* SM_CONF_SEM */ 3140266059SGregory Neil Shapiro # ifndef SM_CONF_MSG 3240266059SGregory Neil Shapiro # define SM_CONF_MSG 1 3340266059SGregory Neil Shapiro # endif /* SM_CONF_MSG */ 3440266059SGregory Neil Shapiro 3540266059SGregory Neil Shapiro #else /* SOLARIS */ 3640266059SGregory Neil Shapiro 3740266059SGregory Neil Shapiro /* 3840266059SGregory Neil Shapiro ** SunOS 4.0.3 or 4.1.x 3940266059SGregory Neil Shapiro */ 4040266059SGregory Neil Shapiro 4140266059SGregory Neil Shapiro # define SM_CONF_SSIZE_T 0 4240266059SGregory Neil Shapiro # ifndef SM_CONF_BROKEN_SIZE_T 4340266059SGregory Neil Shapiro # define SM_CONF_BROKEN_SIZE_T 1 /* size_t is signed? */ 4440266059SGregory Neil Shapiro # endif /* SM_CONF_BROKEN_SIZE_T */ 4540266059SGregory Neil Shapiro 4640266059SGregory Neil Shapiro # ifndef SM_CONF_BROKEN_STRTOD 4740266059SGregory Neil Shapiro # define SM_CONF_BROKEN_STRTOD 1 4840266059SGregory Neil Shapiro # endif /* ! SM_CONF_BROKEN_STRTOD */ 4940266059SGregory Neil Shapiro 5040266059SGregory Neil Shapiro /* has memchr() prototype? (if not: needs memory.h) */ 5140266059SGregory Neil Shapiro # ifndef SM_CONF_MEMCHR 5240266059SGregory Neil Shapiro # define SM_CONF_MEMCHR 0 5340266059SGregory Neil Shapiro # endif /* ! SM_CONF_MEMCHR */ 5440266059SGregory Neil Shapiro 5540266059SGregory Neil Shapiro # ifdef SUNOS403 5640266059SGregory Neil Shapiro 5740266059SGregory Neil Shapiro /* 5840266059SGregory Neil Shapiro ** SunOS 4.0.3 5940266059SGregory Neil Shapiro ** M4 config file is devtools/OS/SunOS4.0, which defines the SUNOS403 macro. 6040266059SGregory Neil Shapiro */ 6140266059SGregory Neil Shapiro 6240266059SGregory Neil Shapiro # else /* SUNOS403 */ 6340266059SGregory Neil Shapiro 6440266059SGregory Neil Shapiro /* 6540266059SGregory Neil Shapiro ** SunOS 4.1.x 6640266059SGregory Neil Shapiro ** M4 config file is devtools/OS/SunOS, which defines no macros. 6740266059SGregory Neil Shapiro */ 6840266059SGregory Neil Shapiro 6940266059SGregory Neil Shapiro # endif /* SUNOS403 */ 7040266059SGregory Neil Shapiro #endif /* SOLARIS */ 71