xref: /plan9/sys/src/cmd/gs/src/errno_.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 1993, 1998 Aladdin Enterprises.  All rights reserved.
2 
3   This software is provided AS-IS with no warranty, either express or
4   implied.
5 
6   This software is distributed under license and may not be copied,
7   modified or distributed except as expressly authorized under the terms
8   of the license contained in the file LICENSE in this distribution.
9 
10   For more information about licensing, please refer to
11   http://www.ghostscript.com/licensing/. For information on
12   commercial licensing, go to http://www.artifex.com/licensing/ or
13   contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14   San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15 */
16 
17 /* $Id: errno_.h,v 1.4 2002/02/21 22:24:51 giles Exp $ */
18 /* Generic substitute for Unix errno.h */
19 
20 #ifndef errno__INCLUDED
21 #  define errno__INCLUDED
22 
23 /* We must include std.h before any file that includes sys/types.h. */
24 #include "std.h"
25 
26 /* All environments provide errno.h, but in some of them, errno.h */
27 /* only defines the error numbers, and doesn't declare errno. */
28 #include <errno.h>
29 #ifndef errno			/* in case it was #defined (very implausible!) */
30 extern int errno;
31 
32 #endif
33 
34 #endif /* errno__INCLUDED */
35