aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/_strerror.c7
-rw-r--r--sysdeps/mach/_strerror.c3
-rw-r--r--sysdeps/unix/sysv/linux/Makefile4
3 files changed, 8 insertions, 6 deletions
diff --git a/sysdeps/generic/_strerror.c b/sysdeps/generic/_strerror.c
index e6f56556aa..53ff9343e1 100644
--- a/sysdeps/generic/_strerror.c
+++ b/sysdeps/generic/_strerror.c
@@ -23,8 +23,8 @@
#include <stdio-common/_itoa.h>
#ifndef HAVE_GNU_LD
-#define _sys_errlist sys_errlist
-#define _sys_nerr sys_nerr
+# define _sys_errlist sys_errlist
+# define _sys_nerr sys_nerr
#endif
/* It is critical here that we always use the `dcgettext' function for
@@ -38,7 +38,7 @@
/* Return a string describing the errno code in ERRNUM. */
char *
-_strerror_internal (int errnum, char *buf, size_t buflen)
+__strerror_r (int errnum, char *buf, size_t buflen)
{
if (errnum < 0 || errnum >= _sys_nerr)
{
@@ -67,3 +67,4 @@ _strerror_internal (int errnum, char *buf, size_t buflen)
return (char *) _(_sys_errlist[errnum]);
}
+weak_alias (__strerror_r, strerror_r)
diff --git a/sysdeps/mach/_strerror.c b/sysdeps/mach/_strerror.c
index 7bca7e8bd9..5be7d272a8 100644
--- a/sysdeps/mach/_strerror.c
+++ b/sysdeps/mach/_strerror.c
@@ -34,7 +34,7 @@
/* Return a string describing the errno code in ERRNUM. */
char *
-_strerror_internal (int errnum, char *buf, size_t buflen)
+__strerror_r (int errnum, char *buf, size_t buflen)
{
int system;
int sub;
@@ -115,3 +115,4 @@ _strerror_internal (int errnum, char *buf, size_t buflen)
return (char *) _(es->subsystem[sub].codes[code]);
}
+weak_alias (__strerror_r, strerror_r)
diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile
index 3d52210fb8..9a509384d6 100644
--- a/sysdeps/unix/sysv/linux/Makefile
+++ b/sysdeps/unix/sysv/linux/Makefile
@@ -78,8 +78,8 @@ ifeq ($(subdir),inet)
sysdep_headers += netinet/in_systm.h netinet/udp.h \
netinet/if_fddi.h netinet/if_tr.h netinet/igmp.h \
netinet/ip_fw.h netinet/ip_icmp.h netipx/ipx.h \
- sys/socketvar.h netax25/ax25.h netrom/netrom.h \
- netrose/rose.h netpacket/packet.h netash/ash.h
+ sys/socketvar.h netash/ash.h netax25/ax25.h netatalk/at.h \
+ netrom/netrom.h netpacket/packet.h netrose/rose.h
endif
ifeq ($(subdir),posix)