summaryrefslogtreecommitdiff
path: root/sysdeps/posix/ttyname_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/ttyname_r.c')
-rw-r--r--sysdeps/posix/ttyname_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/posix/ttyname_r.c b/sysdeps/posix/ttyname_r.c
index 4450a83326..a05dbd5be3 100644
--- a/sysdeps/posix/ttyname_r.c
+++ b/sysdeps/posix/ttyname_r.c
@@ -33,7 +33,7 @@ Cambridge, MA 02139, USA. */
/* Store at most BUFLEN character of the pathname of the terminal FD is
open on in BUF. Return 0 on success, -1 otherwise. */
int
-ttyname_r (fd, buf, buflen)
+__ttyname_r (fd, buf, buflen)
int fd;
char *buf;
int buflen;
@@ -89,3 +89,4 @@ ttyname_r (fd, buf, buflen)
errno = save;
return -1;
}
+weak_alias (__ttyname_r, ttyname_r)