sm_os_sunos.h revision 261194
1100616Smp/*
259243Sobrien * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers.
359243Sobrien *	All rights reserved.
459243Sobrien *
559243Sobrien * By using this file, you agree to the terms and conditions set
659243Sobrien * forth in the LICENSE file which can be found at the top level of
759243Sobrien * the sendmail distribution.
859243Sobrien *
959243Sobrien *	$Id: sm_os_sunos.h,v 1.15 2013/11/22 20:51:34 ca Exp $
1059243Sobrien */
1159243Sobrien
1259243Sobrien/*
1359243Sobrien**  platform definitions for SunOS 4.0.3, SunOS 4.1.x and Solaris 2.x
1459243Sobrien*/
1559243Sobrien
1659243Sobrien#define SM_OS_NAME "sunos"
17100616Smp
1859243Sobrien#ifdef SOLARIS
1959243Sobrien/*
2059243Sobrien**  Solaris 2.x (aka SunOS 5.x)
2159243Sobrien**  M4 config file is devtools/OS/SunOS.5.x, which defines the SOLARIS macro.
2259243Sobrien*/
2359243Sobrien
2459243Sobrien# define SM_CONF_LONGLONG	1
2559243Sobrien# ifndef SM_CONF_SHM
2659243Sobrien#  define SM_CONF_SHM		1
2759243Sobrien# endif /* SM_CONF_SHM */
2859243Sobrien# ifndef SM_CONF_SEM
2959243Sobrien#  define SM_CONF_SEM		2
3059243Sobrien# endif /* SM_CONF_SEM */
3159243Sobrien# ifndef SM_CONF_MSG
3259243Sobrien#  define SM_CONF_MSG		1
3359243Sobrien# endif /* SM_CONF_MSG */
3459243Sobrien
35100616Smp#else /* SOLARIS */
3659243Sobrien
3759243Sobrien/*
3859243Sobrien**  SunOS 4.0.3 or 4.1.x
3959243Sobrien*/
4059243Sobrien
4159243Sobrien# define SM_CONF_SSIZE_T	0
4259243Sobrien# ifndef SM_CONF_BROKEN_SIZE_T
4359243Sobrien#  define SM_CONF_BROKEN_SIZE_T	1	/* size_t is signed? */
4459243Sobrien# endif /* SM_CONF_BROKEN_SIZE_T */
4559243Sobrien
4659243Sobrien# ifndef SM_CONF_BROKEN_STRTOD
4759243Sobrien#  define SM_CONF_BROKEN_STRTOD	1
4859243Sobrien# endif /* ! SM_CONF_BROKEN_STRTOD */
4959243Sobrien
5059243Sobrien/* has memchr() prototype? (if not: needs memory.h) */
5159243Sobrien# ifndef SM_CONF_MEMCHR
5259243Sobrien#  define SM_CONF_MEMCHR	0
5359243Sobrien# endif /* ! SM_CONF_MEMCHR */
5459243Sobrien
5559243Sobrien# ifdef SUNOS403
5659243Sobrien
5759243Sobrien/*
5859243Sobrien**  SunOS 4.0.3
5959243Sobrien**  M4 config file is devtools/OS/SunOS4.0, which defines the SUNOS403 macro.
6059243Sobrien*/
6159243Sobrien
6259243Sobrien# else /* SUNOS403 */
6359243Sobrien
6459243Sobrien/*
6559243Sobrien**  SunOS 4.1.x
6659243Sobrien**  M4 config file is devtools/OS/SunOS, which defines no macros.
6759243Sobrien*/
6859243Sobrien
6959243Sobrien# endif /* SUNOS403 */
7059243Sobrien#endif /* SOLARIS */
7159243Sobrien