summaryrefslogtreecommitdiffstats
path: root/src/test-tty-idle-monitor.c
diff options
context:
space:
mode:
authorWilliam Jon McCann <mccann@jhu.edu>2007-08-27 16:34:45 -0400
committerWilliam Jon McCann <mccann@jhu.edu>2007-08-27 16:34:45 -0400
commit5e0f4848e5bfd325840d405582bdedf3a27b98f8 (patch)
treee51bdb438578cb63c8e1cecb62cde6e718edcf26 /src/test-tty-idle-monitor.c
parent54b545beb4b7e65f852f03dd5da025d5eae7ef8f (diff)
move some of the freebsd specific stuff into sysdeps
Diffstat (limited to 'src/test-tty-idle-monitor.c')
-rw-r--r--src/test-tty-idle-monitor.c14
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]);
}