diff options
Diffstat (limited to 'errno.h')
-rw-r--r-- | errno.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/errno.h b/errno.h index f7736ba8d0..b8486728b7 100644 --- a/errno.h +++ b/errno.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 92, 93, 94, 95, 96 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 93, 94, 95, 96, 97 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -49,13 +49,6 @@ extern int errno; #ifdef __USE_GNU -/* The Hurd <errnos.h> defines `error_t' as an enumerated type - so that printing `error_t' values in the debugger shows the names. */ -#ifndef __error_t_defined -typedef int error_t; -#define __error_t_defined 1 -#endif - /* The full and simple forms of the name with which the program was invoked. These variables are set up automatically at startup based on the value of ARGV[0] (this works only if you use GNU ld). */ @@ -65,4 +58,16 @@ extern char *program_invocation_name, *program_invocation_short_name; __END_DECLS -#endif /* errno.h */ +#endif /* _ERRNO_H */ + +/* The Hurd <errnos.h> defines `error_t' as an enumerated type so that + printing `error_t' values in the debugger shows the names. We + might need this definition sometimes even if this file was included + before. */ +#if defined __USE_GNU || defined __need_error_t +# ifndef __error_t_defined +typedef int error_t; +# define __error_t_defined 1 +# endif +# undef __need_error_t +#endif |