summaryrefslogtreecommitdiff
path: root/libc/stdlib/grantpt.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-30 11:36:18 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-30 11:36:18 +0000
commitbc762b6f1aacdcf388d02e8cbf4b672768dcb819 (patch)
tree4b728df29b122f5c1eb59821d6757039a4958fa6 /libc/stdlib/grantpt.c
parent5c425442727e196867716aa0cca1f66673202f7c (diff)
- fix compilation of UCLIBC_HAS_PTY && !ASSUME_DEVPTS && !LINUX_SPECIFIC
Diffstat (limited to 'libc/stdlib/grantpt.c')
-rw-r--r--libc/stdlib/grantpt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/stdlib/grantpt.c b/libc/stdlib/grantpt.c
index b60ffe7dc..8c858506b 100644
--- a/libc/stdlib/grantpt.c
+++ b/libc/stdlib/grantpt.c
@@ -38,7 +38,8 @@ int __unix_grantpt (int fd);
/* Prototype for private function that gets the name of the slave
pseudo terminal in a safe way. */
static int pts_name (int fd, char **pts, size_t buf_len);
-
+extern __typeof(statfs) __libc_statfs;
+libc_hidden_proto(__libc_statfs)
#endif
/* Change the ownership and access permission of the slave pseudo
@@ -59,7 +60,7 @@ grantpt (attribute_unused int fd)
if (pts_name (fd, &buf, sizeof (_buf)))
return -1;
- if (statfs (buf, &fsbuf) < 0)
+ if (__libc_statfs (buf, &fsbuf) < 0)
return -1;
/* If the slave pseudo terminal lives on a `devpts' filesystem, the