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