summaryrefslogtreecommitdiff
path: root/src/ck-sysdeps-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ck-sysdeps-linux.c')
-rw-r--r--src/ck-sysdeps-linux.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ck-sysdeps-linux.c b/src/ck-sysdeps-linux.c
index 624bfc4..4b751d7 100644
--- a/src/ck-sysdeps-linux.c
+++ b/src/ck-sysdeps-linux.c
@@ -28,6 +28,10 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/vt.h>
+#include <linux/tty.h>
+#include <linux/kd.h>
+
#ifdef HAVE_PATHS_H
#include <paths.h>
#endif /* HAVE_PATHS_H */
@@ -603,3 +607,13 @@ ck_unix_pid_get_ppid (pid_t pid)
out:
return ppid;
}
+
+gboolean
+ck_get_max_num_consoles (guint *num)
+{
+ if (num != NULL) {
+ *num = MAX_NR_CONSOLES;
+ }
+
+ return TRUE;
+}