From 5e0f4848e5bfd325840d405582bdedf3a27b98f8 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Mon, 27 Aug 2007 16:34:45 -0400 Subject: move some of the freebsd specific stuff into sysdeps --- src/test-tty-idle-monitor.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/test-tty-idle-monitor.c') 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 #include #include - -#ifdef __linux__ -#include -#endif - #include #include @@ -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]); } -- cgit