2012-01-23 09:58:00 +01:00
|
|
|
$NetBSD: patch-ad,v 1.2 2012/01/23 08:58:00 adam Exp $
|
2010-08-27 13:42:58 +02:00
|
|
|
|
2012-01-23 09:58:00 +01:00
|
|
|
--- src/plugins/grass/qtermwidget/kpty.cpp.orig 2011-06-05 11:59:48.000000000 +0000
|
2010-08-27 13:42:58 +02:00
|
|
|
+++ src/plugins/grass/qtermwidget/kpty.cpp
|
2012-01-23 09:58:00 +01:00
|
|
|
@@ -66,6 +66,8 @@
|
2010-08-27 13:42:58 +02:00
|
|
|
#include <unistd.h>
|
|
|
|
#include <grp.h>
|
|
|
|
|
|
|
|
+#define HAVE_UTMPX
|
|
|
|
+
|
|
|
|
#if defined(HAVE_PTY_H)
|
|
|
|
# include <pty.h>
|
|
|
|
#endif
|
2012-01-23 09:58:00 +01:00
|
|
|
@@ -570,7 +572,7 @@ void KPty::logout()
|
2010-08-27 13:42:58 +02:00
|
|
|
ut->ut_type = DEAD_PROCESS;
|
|
|
|
# endif
|
|
|
|
# ifdef HAVE_UTMPX
|
|
|
|
- gettimeofday( ut->ut_tv, 0 );
|
|
|
|
+ gettimeofday( &(ut->ut_tv), 0 );
|
|
|
|
pututxline( ut );
|
|
|
|
}
|
|
|
|
endutxent();
|