pkgsrc/geography/qgis/patches/patch-ad

23 lines
537 B
Text
Raw Normal View History

$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();