osd_defs.h revision 256281
178556Sobrien/*-
278556Sobrien * Copyright (c) 1996-1999 Distributed Processing Technology Corporation
378556Sobrien * All rights reserved.
478556Sobrien *
578556Sobrien * Redistribution and use in source form, with or without modification, are
678556Sobrien * permitted provided that redistributions of source code must retain the
778556Sobrien * above copyright notice, this list of conditions and the following disclaimer.
878556Sobrien *
978556Sobrien * This software is provided `as is' by Distributed Processing Technology and
1078556Sobrien * any express or implied warranties, including, but not limited to, the
11167974Sdelphij * implied warranties of merchantability and fitness for a particular purpose,
1278556Sobrien * are disclaimed. In no event shall Distributed Processing Technology be
1378556Sobrien * liable for any direct, indirect, incidental, special, exemplary or
1478556Sobrien * consequential damages (including, but not limited to, procurement of
1578556Sobrien * substitute goods or services; loss of use, data, or profits; or business
16167974Sdelphij * interruptions) however caused and on any theory of liability, whether in
17167974Sdelphij * contract, strict liability, or tort (including negligence or otherwise)
18167974Sdelphij * arising in any way out of the use of this driver software, even if advised
19167974Sdelphij * of the possibility of such damage.
20215041Sobrien *
21215041Sobrien * $FreeBSD: stable/10/sys/dev/asr/osd_defs.h 139749 2005-01-06 01:43:34Z imp $
22167974Sdelphij */
23167974Sdelphij
24167974Sdelphij#ifndef		_OSD_DEFS_H
25167974Sdelphij#define		_OSD_DEFS_H
26167974Sdelphij
27167974Sdelphij/*File - OSD_DEFS.H
28167974Sdelphij ****************************************************************************
29167974Sdelphij *
30167974Sdelphij *Description:
3178556Sobrien *
3278556Sobrien *	This file contains the OS dependent defines.  This file is included
3378556Sobrien *in osd_util.h and provides the OS specific defines for that file.
3478556Sobrien *
3578556Sobrien *Copyright Distributed Processing Technology, Corp.
3678556Sobrien *	  140 Candace Dr.
3778556Sobrien *	  Maitland, Fl. 32751	USA
3878556Sobrien *	  Phone: (407) 830-5522	 Fax: (407) 260-5366
3978556Sobrien *	  All Rights Reserved
4078556Sobrien *
4178556Sobrien *Author:	Doug Anderson
4278556Sobrien *Date:		1/31/94
4378556Sobrien *
4478556Sobrien *Editors:
4578556Sobrien *
4678556Sobrien *Remarks:
4778556Sobrien *
4878556Sobrien *
4978556Sobrien *****************************************************************************/
5078556Sobrien
5178556Sobrien
5278556Sobrien/*Definitions - Defines & Constants ----------------------------------------- */
5378556Sobrien
5478556Sobrien  /* Define the operating system */
5578556Sobrien#if (defined(__linux__))
5678556Sobrien# define _DPT_LINUX
5778556Sobrien#elif (defined(__bsdi__))
5878556Sobrien# define _DPT_BSDI
5978556Sobrien#elif (defined(__FreeBSD__))
6078556Sobrien# undef _DPT_FREE_BSD
6178556Sobrien# define _DPT_FREE_BSD
6278556Sobrien#else
6378556Sobrien# define _DPT_SCO
6478556Sobrien#endif
6578556Sobrien
6678556Sobrien#if defined(ZIL_CURSES)
6778556Sobrien#define		_DPT_CURSES
6878556Sobrien#else
6978556Sobrien#define		_DPT_MOTIF
7078556Sobrien#endif
7178556Sobrien
7278556Sobrien  /* Redefine 'far' to nothing - no far pointer type required in UNIX */
7378556Sobrien#define		far
7478556Sobrien
7578556Sobrien  /* Define the mutually exclusive semaphore type */
7678556Sobrien#define		SEMAPHORE_T	unsigned int *
7778556Sobrien  /* Define a handle to a DLL */
7878556Sobrien#define		DLL_HANDLE_T	unsigned int *
7978556Sobrien
8078556Sobrien#endif
8178556Sobrien