summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/include/sm/os/sm_os_sunos.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sendmail/include/sm/os/sm_os_sunos.h')
-rw-r--r--contrib/sendmail/include/sm/os/sm_os_sunos.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/contrib/sendmail/include/sm/os/sm_os_sunos.h b/contrib/sendmail/include/sm/os/sm_os_sunos.h
new file mode 100644
index 0000000..9d20b18
--- /dev/null
+++ b/contrib/sendmail/include/sm/os/sm_os_sunos.h
@@ -0,0 +1,70 @@
+/*
+ * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
+ * All rights reserved.
+ *
+ * By using this file, you agree to the terms and conditions set
+ * forth in the LICENSE file which can be found at the top level of
+ * the sendmail distribution.
+ *
+ * $Id: sm_os_sunos.h,v 1.14 2001/08/14 18:09:42 ca Exp $
+ */
+
+/*
+** platform definitions for SunOS 4.0.3, SunOS 4.1.x and Solaris 2.x
+*/
+
+#define SM_OS_NAME "sunos"
+
+#ifdef SOLARIS
+/*
+** Solaris 2.x (aka SunOS 5.x)
+** M4 config file is devtools/OS/SunOS.5.x, which defines the SOLARIS macro.
+*/
+
+# define SM_CONF_LONGLONG 1
+# ifndef SM_CONF_SHM
+# define SM_CONF_SHM 1
+# endif /* SM_CONF_SHM */
+# ifndef SM_CONF_SEM
+# define SM_CONF_SEM 2
+# endif /* SM_CONF_SEM */
+# ifndef SM_CONF_MSG
+# define SM_CONF_MSG 1
+# endif /* SM_CONF_MSG */
+
+#else /* SOLARIS */
+
+/*
+** SunOS 4.0.3 or 4.1.x
+*/
+
+# define SM_CONF_SSIZE_T 0
+# ifndef SM_CONF_BROKEN_SIZE_T
+# define SM_CONF_BROKEN_SIZE_T 1 /* size_t is signed? */
+# endif /* SM_CONF_BROKEN_SIZE_T */
+
+# ifndef SM_CONF_BROKEN_STRTOD
+# define SM_CONF_BROKEN_STRTOD 1
+# endif /* ! SM_CONF_BROKEN_STRTOD */
+
+/* has memchr() prototype? (if not: needs memory.h) */
+# ifndef SM_CONF_MEMCHR
+# define SM_CONF_MEMCHR 0
+# endif /* ! SM_CONF_MEMCHR */
+
+# ifdef SUNOS403
+
+/*
+** SunOS 4.0.3
+** M4 config file is devtools/OS/SunOS4.0, which defines the SUNOS403 macro.
+*/
+
+# else /* SUNOS403 */
+
+/*
+** SunOS 4.1.x
+** M4 config file is devtools/OS/SunOS, which defines no macros.
+*/
+
+# endif /* SUNOS403 */
+#endif /* SOLARIS */
OpenPOWER on IntegriCloud