diff options
Diffstat (limited to 'include/errno.h')
-rw-r--r-- | include/errno.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/errno.h b/include/errno.h index f96590c2e..da7f7a0e4 100644 --- a/include/errno.h +++ b/include/errno.h @@ -1,8 +1,8 @@ -#ifndef __ERRNO_H -#define __ERRNO_H +#ifndef _ERRNO_H +#define _ERRNO_H #include <features.h> -#include <linux/errno.h> +#include <bits/errno.h> extern int sys_nerr; extern const char *const sys_errlist[]; @@ -10,8 +10,11 @@ extern const char *const sys_errlist[]; #define _sys_nerr sys_nerr #define _sys_errlist sys_errlist +#ifndef errno extern int errno; +#endif extern void perror __P ((__const char* __s)); extern char* strerror __P ((int __errno)); + #endif |