summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ck-sysdeps-solaris.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ck-sysdeps-solaris.c b/src/ck-sysdeps-solaris.c
index 3f71c6d..7e2a59f 100644
--- a/src/ck-sysdeps-solaris.c
+++ b/src/ck-sysdeps-solaris.c
@@ -471,8 +471,12 @@ ck_get_active_console_num (int console_fd,
*num = active;
}
#else
- res = ERROR;
- errno = ENOTSUP;
+ /*
+ * If not using VT, not really an active number, but return 1,
+ * which maps to "/dev/console".
+ */
+ ret = TRUE;
+ *num = 1;
#endif
return ret;