svn commit: trunk/uClibc/libc/stdlib

aldot at uclibc.org aldot at uclibc.org
Tue Sep 30 11:36:18 UTC 2008


Author: aldot
Date: 2008-09-30 04:36:18 -0700 (Tue, 30 Sep 2008)
New Revision: 23565

Log:
- fix compilation of UCLIBC_HAS_PTY && !ASSUME_DEVPTS && !LINUX_SPECIFIC


Modified:
   trunk/uClibc/libc/stdlib/grantpt.c


Changeset:
Modified: trunk/uClibc/libc/stdlib/grantpt.c
===================================================================
--- trunk/uClibc/libc/stdlib/grantpt.c	2008-09-30 11:28:52 UTC (rev 23564)
+++ trunk/uClibc/libc/stdlib/grantpt.c	2008-09-30 11:36:18 UTC (rev 23565)
@@ -38,7 +38,8 @@
 /* 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 @@
   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




More information about the uClibc-cvs mailing list