aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/ttyname_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/ttyname_r.c')
-rw-r--r--sysdeps/mach/hurd/ttyname_r.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/ttyname_r.c b/sysdeps/mach/hurd/ttyname_r.c
index 05c2a6f2fa..8a2cdd6605 100644
--- a/sysdeps/mach/hurd/ttyname_r.c
+++ b/sysdeps/mach/hurd/ttyname_r.c
@@ -26,7 +26,7 @@
/* Store at most BUFLEN characters of the pathname of the terminal FD is
open on in BUF. Return 0 on success, -1 otherwise. */
int
-ttyname_r (int fd, char *buf, size_t buflen)
+__ttyname_r (int fd, char *buf, size_t buflen)
{
error_t err;
char nodename[1024]; /* XXX */
@@ -47,3 +47,5 @@ ttyname_r (int fd, char *buf, size_t buflen)
memcpy (buf, nodename, len);
return 0;
}
+
+weak_alias (__ttyname_r, ttyname_r)