From f39d3756e1d9da62de923ba470d3312b89bea6be Mon Sep 17 00:00:00 2001 From: Brian Cameron Date: Mon, 25 Feb 2008 15:05:44 -0500 Subject: fix solaris vt handling to work when no vt available This fixes the patch that Simon Zhang sent you earlier so that it builds on machines without VT. --- src/ck-vt-monitor.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ck-vt-monitor.c b/src/ck-vt-monitor.c index 414abf6..d21026b 100644 --- a/src/ck-vt-monitor.c +++ b/src/ck-vt-monitor.c @@ -40,7 +40,7 @@ #include "ck-sysdeps.h" #include "ck-marshal.h" -#ifdef __sun +#if defined (__sun) && defined (HAVE_SYS_VT_H) #include #include #include @@ -163,7 +163,7 @@ ck_vt_monitor_get_active (CkVtMonitor *vt_monitor, return TRUE; } -#ifdef __sun +#if defined (__sun) && defined (HAVE_SYS_VT_H) static void handle_vt_active (void) { @@ -382,7 +382,9 @@ vt_add_watches (CkVtMonitor *vt_monitor) int i; gint32 current_num; -#ifdef __sun +#if defined (__sun) && !defined (HAVE_SYS_VT_H) + /* Best to do nothing if VT is not supported */ +#elif defined (__sun) && defined (HAVE_SYS_VT_H) /* * Solaris supports synchronous event notification in STREAMS. * Applications that open the virtual console device can -- cgit