svn commit: trunk/uClibc/libc/stdlib
aldot at uclibc.org
aldot at uclibc.org
Thu Sep 25 13:23:06 UTC 2008
Author: aldot
Date: 2008-09-25 06:23:05 -0700 (Thu, 25 Sep 2008)
New Revision: 23500
Log:
- fix compilation of legacy mode
Modified:
trunk/uClibc/libc/stdlib/getpt.c
Changeset:
Modified: trunk/uClibc/libc/stdlib/getpt.c
===================================================================
--- trunk/uClibc/libc/stdlib/getpt.c 2008-09-25 13:04:05 UTC (rev 23499)
+++ trunk/uClibc/libc/stdlib/getpt.c 2008-09-25 13:23:05 UTC (rev 23500)
@@ -74,14 +74,19 @@
/* Check that the /dev/pts filesystem is mounted
or if /dev is a devfs filesystem (this implies /dev/pts). */
- if ((_state & devpts_mounted)
- || (__libc_statfs (_PATH_DEVPTS, &fsbuf) == 0
+ if (
+#if !defined __UNIX98PTY_ONLY__
+ (_state & devpts_mounted) ||
+#endif
+ (__libc_statfs (_PATH_DEVPTS, &fsbuf) == 0
&& fsbuf.f_type == DEVPTS_SUPER_MAGIC)
|| (__libc_statfs (_PATH_DEV, &fsbuf) == 0
&& fsbuf.f_type == DEVFS_SUPER_MAGIC))
{
/* Everything is ok. */
+#if !defined __UNIX98PTY_ONLY__
_state |= devpts_mounted;
+#endif
return fd;
}
More information about the uClibc-cvs
mailing list