Merge from vendor branch SENDMAIL:
[dragonfly.git] / contrib / sendmail-8.13.4 / include / sm / os / sm_os_sunos.h
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 /*
13 **  platform definitions for SunOS 4.0.3, SunOS 4.1.x and Solaris 2.x
14 */
15
16 #define SM_OS_NAME "sunos"
17
18 #ifdef SOLARIS
19 /*
20 **  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 */