sm_os_sunos.h revision 303975
1228060Sbapt/* 2228060Sbapt * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers. 3228060Sbapt * All rights reserved. 4228060Sbapt * 5228060Sbapt * By using this file, you agree to the terms and conditions set 6228060Sbapt * forth in the LICENSE file which can be found at the top level of 7228060Sbapt * the sendmail distribution. 8228060Sbapt * 9228060Sbapt * $Id: sm_os_sunos.h,v 1.15 2013-11-22 20:51:34 ca Exp $ 10228060Sbapt */ 11228060Sbapt 12228060Sbapt/* 13228060Sbapt** platform definitions for SunOS 4.0.3, SunOS 4.1.x and Solaris 2.x 14228060Sbapt*/ 15228060Sbapt 16228060Sbapt#define SM_OS_NAME "sunos" 17228060Sbapt 18228060Sbapt#ifdef SOLARIS 19228060Sbapt/* 20228060Sbapt** Solaris 2.x (aka SunOS 5.x) 21** M4 config file is devtools/OS/SunOS.5.x, which defines the SOLARIS macro. 22*/ 23 24# define SM_CONF_LONGLONG 1 25# ifndef SM_CONF_SHM 26# define SM_CONF_SHM 1 27# endif /* SM_CONF_SHM */ 28# ifndef SM_CONF_SEM 29# define SM_CONF_SEM 2 30# endif /* SM_CONF_SEM */ 31# ifndef SM_CONF_MSG 32# define SM_CONF_MSG 1 33# endif /* SM_CONF_MSG */ 34 35#else /* SOLARIS */ 36 37/* 38** SunOS 4.0.3 or 4.1.x 39*/ 40 41# define SM_CONF_SSIZE_T 0 42# ifndef SM_CONF_BROKEN_SIZE_T 43# define SM_CONF_BROKEN_SIZE_T 1 /* size_t is signed? */ 44# endif /* SM_CONF_BROKEN_SIZE_T */ 45 46# ifndef SM_CONF_BROKEN_STRTOD 47# define SM_CONF_BROKEN_STRTOD 1 48# endif /* ! SM_CONF_BROKEN_STRTOD */ 49 50/* has memchr() prototype? (if not: needs memory.h) */ 51# ifndef SM_CONF_MEMCHR 52# define SM_CONF_MEMCHR 0 53# endif /* ! SM_CONF_MEMCHR */ 54 55# ifdef SUNOS403 56 57/* 58** SunOS 4.0.3 59** M4 config file is devtools/OS/SunOS4.0, which defines the SUNOS403 macro. 60*/ 61 62# else /* SUNOS403 */ 63 64/* 65** SunOS 4.1.x 66** M4 config file is devtools/OS/SunOS, which defines no macros. 67*/ 68 69# endif /* SUNOS403 */ 70#endif /* SOLARIS */ 71