diff options
Diffstat (limited to 'src/test-tty-idle-monitor.c')
-rw-r--r-- | src/test-tty-idle-monitor.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/test-tty-idle-monitor.c b/src/test-tty-idle-monitor.c index 030eba5..f56b37f 100644 --- a/src/test-tty-idle-monitor.c +++ b/src/test-tty-idle-monitor.c @@ -31,11 +31,6 @@ #include <pwd.h> #include <string.h> #include <errno.h> - -#ifdef __linux__ -#include <linux/kd.h> -#endif - #include <locale.h> #include <glib.h> @@ -81,14 +76,7 @@ main (int argc, char **argv) g_type_init (); if (argc < 2) { -#if defined(__FreeBSD__) - device = ttyname (0); -#else - device = g_file_read_link ("/proc/self/fd/0", NULL); - if (device == NULL) { - device = g_strdup ("/proc/self/fd/0"); - } -#endif + device = ttyname (0); } else { device = g_strdup (argv[1]); } |