summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-07 13:55:32 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-06-07 13:55:32 +0000
commit8dec9e26aa8e5c92d87e57f745eef74810d088f9 (patch)
tree6b3e3648120ebc364c0cd36a6f869026d6c794be /include
parenta921f29db08ac413f92a9736332f9f0d1090f089 (diff)
- UCLIBC_HAS_GETPT pulls in getpt.
- ptsname_r depends on UCLIBC_HAS_PTY just like ptsname()
Diffstat (limited to 'include')
-rw-r--r--include/stdlib.h5
1 files changed, 4 insertions, 1 deletions
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 */