mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-08 03:44:13 -04:00
23 lines
537 B
Plaintext
23 lines
537 B
Plaintext
$NetBSD: patch-ad,v 1.2 2012/01/23 08:58:00 adam Exp $
|
|
|
|
--- src/plugins/grass/qtermwidget/kpty.cpp.orig 2011-06-05 11:59:48.000000000 +0000
|
|
+++ src/plugins/grass/qtermwidget/kpty.cpp
|
|
@@ -66,6 +66,8 @@
|
|
#include <unistd.h>
|
|
#include <grp.h>
|
|
|
|
+#define HAVE_UTMPX
|
|
+
|
|
#if defined(HAVE_PTY_H)
|
|
# include <pty.h>
|
|
#endif
|
|
@@ -570,7 +572,7 @@ void KPty::logout()
|
|
ut->ut_type = DEAD_PROCESS;
|
|
# endif
|
|
# ifdef HAVE_UTMPX
|
|
- gettimeofday( ut->ut_tv, 0 );
|
|
+ gettimeofday( &(ut->ut_tv), 0 );
|
|
pututxline( ut );
|
|
}
|
|
endutxent();
|