aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/errlist.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/sysdeps/mach/hurd/errlist.c b/sysdeps/mach/hurd/errlist.c
index 71f7abda1c..fe5709cf6a 100644
--- a/sysdeps/mach/hurd/errlist.c
+++ b/sysdeps/mach/hurd/errlist.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998,2002 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
@@ -16,17 +16,14 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
-/* SYS_ERRLIST cannot have Unix semantics on the Hurd, so it is easier
- just to rename it. We also need to remap error codes to array
- indices by taking their subcode. */
-#define SYS_ERRLIST _hurd_errlist
-#define SYS_NERR _hurd_nerr
+/* sys_errlist cannot have Unix semantics on the Hurd, so it is easier just
+ to rename it. We also need to remap error codes to array indices by
+ taking their subcode. */
+#define _sys_errlist_internal _hurd_errlist
+#define _sys_nerr_internal _hurd_nerr
+#define ERRLIST_NO_COMPAT 1
#include <mach/error.h>
#define ERR_REMAP(n) (err_get_code (n))
#include <sysdeps/gnu/errlist.c>
-
-/* Oblige programs that use sys_nerr, but don't use sys_errlist. */
-weak_alias (_hurd_nerr, sys_nerr)
-weak_alias (_hurd_nerr, _sys_nerr)