File tree 3 files changed +8
-0
lines changed
src/plugins/grass/qtermwidget
3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -636,8 +636,10 @@ bool K3Process::closeStderr()
636
636
bool K3Process::closePty ()
637
637
{
638
638
if (d->pty && d->pty ->masterFd () >= 0 ) {
639
+ #ifndef Q_OS_MAC
639
640
if (d->addUtmp )
640
641
d->pty ->logout ();
642
+ #endif
641
643
d->pty ->close ();
642
644
return true ;
643
645
} else
@@ -948,8 +950,10 @@ int K3Process::commSetupDoneC()
948
950
// PTY stuff //
949
951
if (d->usePty ) {
950
952
d->pty ->setCTty ();
953
+ #ifndef Q_OS_MAC
951
954
if (d->addUtmp )
952
955
d->pty ->login (getenv (" USER" ), getenv (" DISPLAY" ));
956
+ #endif
953
957
}
954
958
955
959
return ok;
Original file line number Diff line number Diff line change @@ -417,6 +417,7 @@ void KPty::setCTty()
417
417
#endif
418
418
}
419
419
420
+ #ifndef Q_OS_MAC
420
421
void KPty::login (const char *user, const char *remotehost)
421
422
{
422
423
#ifdef HAVE_UTEMPTER
@@ -561,6 +562,7 @@ void KPty::logout()
561
562
# endif
562
563
#endif
563
564
}
565
+ #endif
564
566
565
567
// XXX Supposedly, tc[gs]etattr do not work with the master on Solaris.
566
568
// Please verify.
Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ class KPty {
82
82
*/
83
83
void setCTty ();
84
84
85
+ #ifndef Q_OS_MAC
85
86
/* *
86
87
* Creates an utmp entry for the tty.
87
88
* This function must be called after calling setCTty and
@@ -98,6 +99,7 @@ class KPty {
98
99
* Removes the utmp entry for this tty.
99
100
*/
100
101
void logout ();
102
+ #endif
101
103
102
104
/* *
103
105
* Wrapper around tcgetattr(3).
You can’t perform that action at this time.
0 commit comments