Bug 156197

Summary: kpty needs loginx() support
Product: [Unmaintained] kdelibs Reporter: Mark Davies <mark>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: NetBSD pkgsrc   
OS: NetBSD   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: loginx() support

Description Mark Davies 2008-01-19 21:19:00 UTC
Version:            (using KDE 4.0.0)
Installed from:    NetBSD pkgsrc
OS:                NetBSD

Between RC2 and the 4.0.0 release kpty grew knowledge of the login() function, however attempting to use this on NetBSD fails as on that platform login() works with struct utmp's whereas loginx() is what you use with struct utmpx's.
I'll attach a patch to add support for use and detection of loginx().
Comment 1 Mark Davies 2008-01-19 21:19:45 UTC
Created attachment 23142 [details]
loginx() support
Comment 2 Oswald Buddenhagen 2008-01-20 09:51:59 UTC
SVN commit 763699 by ossi:

use loginx() with utmpx when available. fixes NetBSD compile.
patch by Mark Davies <mark@mcs.vuw.ac.nz>
BUG: 156197


 M  +3 -0      ConfigureChecks.cmake  
 M  +1 -0      config-pty.h.cmake  
 M  +8 -0      kpty/kpty.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=763699