From 6f7dc709ed7e403af224b0fbb91e9619629eb2ec Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 14 Jan 2006 19:45:02 +0000 Subject: make DODEBUG=y happy, update sysdeps/common/* copyright --- libc/stdlib/ptsname.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libc/stdlib/ptsname.c') diff --git a/libc/stdlib/ptsname.c b/libc/stdlib/ptsname.c index 8580143b9..5184c8f82 100644 --- a/libc/stdlib/ptsname.c +++ b/libc/stdlib/ptsname.c @@ -18,6 +18,7 @@ 02111-1307 USA. */ #define _ISOC99_SOURCE +#define _GNU_SOURCE #include #include #include @@ -69,6 +70,7 @@ extern const char __libc_ptyname2[] attribute_hidden; /* Store at most BUFLEN characters of the pathname of the slave pseudo terminal associated with the master FD is open on in BUF. Return 0 on success, otherwise an error number. */ +libc_hidden_proto(ptsname_r) int ptsname_r (int fd, char *buf, size_t buflen) { int save_errno = errno; @@ -186,7 +188,6 @@ int ptsname_r (int fd, char *buf, size_t buflen) errno = save_errno; return 0; } -libc_hidden_proto(ptsname_r) libc_hidden_def(ptsname_r) /* Return the pathname of the pseudo terminal slave assoicated with -- cgit v1.2.3