diff --git a/src/frontend/mosh-server.cc b/src/frontend/mosh-server.cc index 1ec831c..37a7ba7 100644 --- a/src/frontend/mosh-server.cc +++ b/src/frontend/mosh-server.cc @@ -953,12 +953,14 @@ static bool motd_hushed( void ) return (0 == lstat( ".hushlogin", &buf )); } +#ifdef HAVE_UTMPX_H static bool device_exists( const char *ut_line ) { string device_name = string( "/dev/" ) + string( ut_line ); struct stat buf; return (0 == lstat( device_name.c_str(), &buf )); } +#endif static void warn_unattached( const string & ignore_entry ) {