summaryrefslogtreecommitdiff
path: root/src/ck-sysdeps-linux.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2007-08-21 11:27:04 -0400
committerWilliam Jon McCann <mccann@jhu.edu>2007-08-21 11:27:04 -0400
commit0145691112f14352ef15b49c1ea3079a8e80f6e8 (patch)
treeba3477be1e65fb3b6069cadbf3bb9e1a1fe2fe0a /src/ck-sysdeps-linux.c
parent3e6bbcaea6d441956c9c1173d7586bd346a8c77b (diff)
downloadConsoleKit2-0145691112f14352ef15b49c1ea3079a8e80f6e8.tar.gz
more solaris support
based on patch from Brian Cameron.
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;
+}