From 490297048638b5de6a7e6e0dcc7fb304505d11d3 Mon Sep 17 00:00:00 2001 From: John Hood Date: Sat, 13 May 2017 19:29:40 -0400 Subject: [PATCH] Fix utempter #ifdefs. --- src/frontend/mosh-server.cc | 2 ++ 1 file changed, 2 insertions(+) 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 ) {