* lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
the device.
+2020-12-31 Bruno Haible <bruno@clisp.org>
+
+ ptsname_r: Fix test failure on Solaris.
+ * lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
+ the device.
+
2020-12-31 Bruno Haible <bruno@clisp.org>
posixtm tests: Disable part of the test on plaforms where it fails.
# if defined __sun /* Solaris */
if (fstat (fd, &st) < 0)
return errno;
- if (!(S_ISCHR (st.st_mode) && major (st.st_rdev) == 0))
+ if (!S_ISCHR (st.st_mode))
{
errno = ENOTTY;
return errno;