1*7c478bd9Sstevel@tonic-gate /*
2*7c478bd9Sstevel@tonic-gate  * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
3*7c478bd9Sstevel@tonic-gate  *	All rights reserved.
4*7c478bd9Sstevel@tonic-gate  *
5*7c478bd9Sstevel@tonic-gate  * By using this file, you agree to the terms and conditions set
6*7c478bd9Sstevel@tonic-gate  * forth in the LICENSE file which can be found at the top level of
7*7c478bd9Sstevel@tonic-gate  * the sendmail distribution.
8*7c478bd9Sstevel@tonic-gate  *
9*7c478bd9Sstevel@tonic-gate  *	$Id: sm_os_sunos.h,v 1.14 2001/08/14 18:09:42 ca Exp $
10*7c478bd9Sstevel@tonic-gate  */
11*7c478bd9Sstevel@tonic-gate 
12*7c478bd9Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
13*7c478bd9Sstevel@tonic-gate 
14*7c478bd9Sstevel@tonic-gate /*
15*7c478bd9Sstevel@tonic-gate **  platform definitions for SunOS 4.0.3, SunOS 4.1.x and Solaris 2.x
16*7c478bd9Sstevel@tonic-gate */
17*7c478bd9Sstevel@tonic-gate 
18*7c478bd9Sstevel@tonic-gate #define SM_OS_NAME "sunos"
19*7c478bd9Sstevel@tonic-gate 
20*7c478bd9Sstevel@tonic-gate #ifdef SOLARIS
21*7c478bd9Sstevel@tonic-gate /*
22*7c478bd9Sstevel@tonic-gate **  Solaris 2.x (aka SunOS 5.x)
23*7c478bd9Sstevel@tonic-gate **  M4 config file is devtools/OS/SunOS.5.x, which defines the SOLARIS macro.
24*7c478bd9Sstevel@tonic-gate */
25*7c478bd9Sstevel@tonic-gate 
26*7c478bd9Sstevel@tonic-gate # define SM_CONF_LONGLONG	1
27*7c478bd9Sstevel@tonic-gate # ifndef SM_CONF_SHM
28*7c478bd9Sstevel@tonic-gate #  define SM_CONF_SHM		1
29*7c478bd9Sstevel@tonic-gate # endif /* SM_CONF_SHM */
30*7c478bd9Sstevel@tonic-gate # ifndef SM_CONF_SEM
31*7c478bd9Sstevel@tonic-gate #  define SM_CONF_SEM		2
32*7c478bd9Sstevel@tonic-gate # endif /* SM_CONF_SEM */
33*7c478bd9Sstevel@tonic-gate # ifndef SM_CONF_MSG
34*7c478bd9Sstevel@tonic-gate #  define SM_CONF_MSG		1
35*7c478bd9Sstevel@tonic-gate # endif /* SM_CONF_MSG */
36*7c478bd9Sstevel@tonic-gate 
37*7c478bd9Sstevel@tonic-gate #else /* SOLARIS */
38*7c478bd9Sstevel@tonic-gate 
39*7c478bd9Sstevel@tonic-gate /*
40*7c478bd9Sstevel@tonic-gate **  SunOS 4.0.3 or 4.1.x
41*7c478bd9Sstevel@tonic-gate */
42*7c478bd9Sstevel@tonic-gate 
43*7c478bd9Sstevel@tonic-gate # define SM_CONF_SSIZE_T	0
44*7c478bd9Sstevel@tonic-gate # ifndef SM_CONF_BROKEN_SIZE_T
45*7c478bd9Sstevel@tonic-gate #  define SM_CONF_BROKEN_SIZE_T	1	/* size_t is signed? */
46*7c478bd9Sstevel@tonic-gate # endif /* SM_CONF_BROKEN_SIZE_T */
47*7c478bd9Sstevel@tonic-gate 
48*7c478bd9Sstevel@tonic-gate # ifndef SM_CONF_BROKEN_STRTOD
49*7c478bd9Sstevel@tonic-gate #  define SM_CONF_BROKEN_STRTOD	1
50*7c478bd9Sstevel@tonic-gate # endif /* ! SM_CONF_BROKEN_STRTOD */
51*7c478bd9Sstevel@tonic-gate 
52*7c478bd9Sstevel@tonic-gate /* has memchr() prototype? (if not: needs memory.h) */
53*7c478bd9Sstevel@tonic-gate # ifndef SM_CONF_MEMCHR
54*7c478bd9Sstevel@tonic-gate #  define SM_CONF_MEMCHR	0
55*7c478bd9Sstevel@tonic-gate # endif /* ! SM_CONF_MEMCHR */
56*7c478bd9Sstevel@tonic-gate 
57*7c478bd9Sstevel@tonic-gate # ifdef SUNOS403
58*7c478bd9Sstevel@tonic-gate 
59*7c478bd9Sstevel@tonic-gate /*
60*7c478bd9Sstevel@tonic-gate **  SunOS 4.0.3
61*7c478bd9Sstevel@tonic-gate **  M4 config file is devtools/OS/SunOS4.0, which defines the SUNOS403 macro.
62*7c478bd9Sstevel@tonic-gate */
63*7c478bd9Sstevel@tonic-gate 
64*7c478bd9Sstevel@tonic-gate # else /* SUNOS403 */
65*7c478bd9Sstevel@tonic-gate 
66*7c478bd9Sstevel@tonic-gate /*
67*7c478bd9Sstevel@tonic-gate **  SunOS 4.1.x
68*7c478bd9Sstevel@tonic-gate **  M4 config file is devtools/OS/SunOS, which defines no macros.
69*7c478bd9Sstevel@tonic-gate */
70*7c478bd9Sstevel@tonic-gate 
71*7c478bd9Sstevel@tonic-gate # endif /* SUNOS403 */
72*7c478bd9Sstevel@tonic-gate #endif /* SOLARIS */
73