xref: /freebsd/contrib/sendmail/include/sm/os/sm_os_irix.h (revision ee7b0571c2c18bdec848ed2044223cc88db29bd8)
1 /*
2  * Copyright (c) 2000-2001 Proofpoint, 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_irix.h,v 1.8 2013-11-22 20:51:34 ca Exp $
10  */
11 
12 /*
13 **  Silicon Graphics IRIX
14 **
15 **	Compiles on 4.0.1.
16 **
17 **	Use IRIX64 instead of IRIX for 64-bit IRIX (6.0).
18 **	Use IRIX5 instead of IRIX for IRIX 5.x.
19 **
20 **	This version tries to be adaptive using _MIPS_SIM:
21 **		_MIPS_SIM == _ABIO32 (= 1)    Abi: -32 on IRIX 6.2
22 **		_MIPS_SIM == _ABIN32 (= 2)    Abi: -n32 on IRIX 6.2
23 **		_MIPS_SIM == _ABI64  (= 3)    Abi: -64 on IRIX 6.2
24 **
25 **		_MIPS_SIM is 1 also on IRIX 5.3
26 **
27 **	IRIX64 changes from Mark R. Levinson <ml@cvdev.rochester.edu>.
28 **	IRIX5 changes from Kari E. Hurtta <Kari.Hurtta@fmi.fi>.
29 **	Adaptive changes from Kari E. Hurtta <Kari.Hurtta@fmi.fi>.
30 */
31 
32 #ifndef IRIX
33 # define IRIX
34 #endif /* ! IRIX */
35 #if _MIPS_SIM > 0 && !defined(IRIX5)
36 # define IRIX5			/* IRIX5 or IRIX6 */
37 #endif /* _MIPS_SIM > 0 && !defined(IRIX5) */
38 #if _MIPS_SIM > 1 && !defined(IRIX6) && !defined(IRIX64)
39 # define IRIX6			/* IRIX6 */
40 #endif /* _MIPS_SIM > 1 && !defined(IRIX6) && !defined(IRIX64) */
41 
42 #define SM_OS_NAME	"irix"
43 
44 #if defined(IRIX6) || defined(IRIX64)
45 # define SM_CONF_LONGLONG	1
46 #endif /* defined(IRIX6) || defined(IRIX64) */
47 
48 #if defined(IRIX64) || defined(IRIX5) || defined(IRIX6)
49 # define SM_CONF_SYS_CDEFS_H	1
50 #endif /* defined(IRIX64) || defined(IRIX5) || defined(IRIX6) */
51 
52 /* try LLONG tests in libsm/t-types.c? */
53 #ifndef SM_CONF_TEST_LLONG
54 # define SM_CONF_TEST_LLONG	0
55 #endif /* !SM_CONF_TEST_LLONG */
56