190792Sgshapiro/*
2261194Sgshapiro * Copyright (c) 2000-2001 Proofpoint, Inc. and its suppliers.
390792Sgshapiro *	All rights reserved.
490792Sgshapiro *
590792Sgshapiro * By using this file, you agree to the terms and conditions set
690792Sgshapiro * forth in the LICENSE file which can be found at the top level of
790792Sgshapiro * the sendmail distribution.
890792Sgshapiro *
9266527Sgshapiro *	$Id: sm_os_irix.h,v 1.8 2013-11-22 20:51:34 ca Exp $
1090792Sgshapiro */
1190792Sgshapiro
1290792Sgshapiro/*
1390792Sgshapiro**  Silicon Graphics IRIX
1490792Sgshapiro**
1590792Sgshapiro**	Compiles on 4.0.1.
1690792Sgshapiro**
1790792Sgshapiro**	Use IRIX64 instead of IRIX for 64-bit IRIX (6.0).
1890792Sgshapiro**	Use IRIX5 instead of IRIX for IRIX 5.x.
1990792Sgshapiro**
2090792Sgshapiro**	This version tries to be adaptive using _MIPS_SIM:
2190792Sgshapiro**		_MIPS_SIM == _ABIO32 (= 1)    Abi: -32 on IRIX 6.2
2290792Sgshapiro**		_MIPS_SIM == _ABIN32 (= 2)    Abi: -n32 on IRIX 6.2
2390792Sgshapiro**		_MIPS_SIM == _ABI64  (= 3)    Abi: -64 on IRIX 6.2
2490792Sgshapiro**
2590792Sgshapiro**		_MIPS_SIM is 1 also on IRIX 5.3
2690792Sgshapiro**
2790792Sgshapiro**	IRIX64 changes from Mark R. Levinson <ml@cvdev.rochester.edu>.
2890792Sgshapiro**	IRIX5 changes from Kari E. Hurtta <Kari.Hurtta@fmi.fi>.
2990792Sgshapiro**	Adaptive changes from Kari E. Hurtta <Kari.Hurtta@fmi.fi>.
3090792Sgshapiro*/
3190792Sgshapiro
3290792Sgshapiro#ifndef IRIX
3390792Sgshapiro# define IRIX
3490792Sgshapiro#endif /* ! IRIX */
3590792Sgshapiro#if _MIPS_SIM > 0 && !defined(IRIX5)
3690792Sgshapiro# define IRIX5			/* IRIX5 or IRIX6 */
3790792Sgshapiro#endif /* _MIPS_SIM > 0 && !defined(IRIX5) */
3890792Sgshapiro#if _MIPS_SIM > 1 && !defined(IRIX6) && !defined(IRIX64)
3990792Sgshapiro# define IRIX6			/* IRIX6 */
4090792Sgshapiro#endif /* _MIPS_SIM > 1 && !defined(IRIX6) && !defined(IRIX64) */
4190792Sgshapiro
4290792Sgshapiro#define SM_OS_NAME	"irix"
4390792Sgshapiro
4490792Sgshapiro#if defined(IRIX6) || defined(IRIX64)
4590792Sgshapiro# define SM_CONF_LONGLONG	1
4690792Sgshapiro#endif /* defined(IRIX6) || defined(IRIX64) */
4790792Sgshapiro
4890792Sgshapiro#if defined(IRIX64) || defined(IRIX5) || defined(IRIX6)
4990792Sgshapiro# define SM_CONF_SYS_CDEFS_H	1
5090792Sgshapiro#endif /* defined(IRIX64) || defined(IRIX5) || defined(IRIX6) */
5190792Sgshapiro
5290792Sgshapiro/* try LLONG tests in libsm/t-types.c? */
5390792Sgshapiro#ifndef SM_CONF_TEST_LLONG
5490792Sgshapiro# define SM_CONF_TEST_LLONG	0
5590792Sgshapiro#endif /* !SM_CONF_TEST_LLONG */
56