diff options
Diffstat (limited to 'sysdeps/mach/hurd/errlist.c')
-rw-r--r-- | sysdeps/mach/hurd/errlist.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/errlist.c b/sysdeps/mach/hurd/errlist.c index 5cbc543ed1..f1ca0dc3ae 100644 --- a/sysdeps/mach/hurd/errlist.c +++ b/sysdeps/mach/hurd/errlist.c @@ -21,6 +21,8 @@ indices by taking their subcode. */ #define SYS_ERRLIST _hurd_errlist #define SYS_NERR _hurd_nerr -#define ERR_REMAP(n) (n & 0x3fff) + +#include <mach/error.h> +#define ERR_REMAP(n) (err_get_code (n)) #include <sysdeps/gnu/errlist.c> |