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