From 8dec9e26aa8e5c92d87e57f745eef74810d088f9 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 7 Jun 2008 13:55:32 +0000 Subject: - UCLIBC_HAS_GETPT pulls in getpt. - ptsname_r depends on UCLIBC_HAS_PTY just like ptsname() --- include/stdlib.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/stdlib.h b/include/stdlib.h index 0b4447480..b5ab9c9d1 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -835,14 +835,17 @@ extern char *ptsname (int __fd) __THROW __wur; #endif #ifdef __USE_GNU +# if defined __UCLIBC_HAS_PTY__ /* 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. */ extern int ptsname_r (int __fd, char *__buf, size_t __buflen) __THROW __nonnull ((2)); - +# endif +# if defined __UCLIBC_HAS_GETPT__ /* Open a master pseudo terminal and return its file descriptor. */ extern int getpt (void); +# endif #endif #if 0 /* def __USE_BSD */ -- cgit v1.2.3