svn commit: trunk/uClibc/libc/stdlib

vapier at uclibc.org vapier at uclibc.org
Fri Jan 4 22:07:49 PST 2008


Author: vapier
Date: 2008-01-04 22:07:49 -0800 (Fri, 04 Jan 2008)
New Revision: 20714

Log:
michael_d writes in 1879:
When no TIOCGPTN definition is present in the kernel headers, the library's ptsname() function will not work.

The libc/stdlib/ptsname_r.c file is the problem. This file includes a complicated nest of #if directives. One of these #if's has the opposite sense from what is required.


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


Changeset:
Modified: trunk/uClibc/libc/stdlib/ptsname.c
===================================================================
--- trunk/uClibc/libc/stdlib/ptsname.c	2008-01-05 06:03:12 UTC (rev 20713)
+++ trunk/uClibc/libc/stdlib/ptsname.c	2008-01-05 06:07:49 UTC (rev 20714)
@@ -129,7 +129,7 @@
       return ENOTTY;
     }
 #else
-# if !defined TIOCGPTN
+# if defined TIOCGPTN
   else if (errno == EINVAL)
 # endif
     {



More information about the uClibc-cvs mailing list