--- qmltermwidget/lib/kpty.cpp.orig +++ qmltermwidget/lib/kpty.cpp @@ -28,7 +28,7 @@ #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) -#define HAVE_LOGIN +//#define HAVE_LOGIN #define HAVE_LIBUTIL_H #endif @@ -84,9 +84,10 @@ extern "C" { # include } #else -# include # ifdef HAVE_UTMPX # include +# else +# include # endif # if !defined(_PATH_UTMPX) && defined(_UTMPX_FILE) # define _PATH_UTMPX _UTMPX_FILE @@ -550,7 +551,7 @@ void KPty::login(const char * user, cons # endif # endif # ifdef HAVE_UTMPX - utmpxname(_PATH_UTMPX); + //utmpxname(_PATH_UTMPX); setutxent(); pututxline(&l_struct); endutxent(); @@ -606,7 +607,7 @@ void KPty::logout() strncpy(l_struct.ut_line, str_ptr, sizeof(l_struct.ut_line)); # ifdef HAVE_UTMPX - utmpxname(_PATH_UTMPX); + //utmpxname(_PATH_UTMPX); setutxent(); if ((ut = getutxline(&l_struct))) { # else