Disable some minor code for Android and *BSD
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <termios.h>
|
||||
#include <errno.h>
|
||||
#ifndef __ANDROID__
|
||||
#if !defined(Q_OS_ANDROID) && !defined(Q_OS_FREEBSD)
|
||||
#include <utmpx.h>
|
||||
#endif
|
||||
#include <fcntl.h>
|
||||
@@ -333,7 +333,7 @@ void ShellProcess::setupChildProcess()
|
||||
ioctl(m_handleSlave, TIOCSCTTY, 0);
|
||||
tcsetpgrp(m_handleSlave, sid);
|
||||
|
||||
#ifndef __ANDROID__
|
||||
#if !defined(Q_OS_ANDROID) && !defined(Q_OS_FREEBSD)
|
||||
// on Android imposible to put record to the 'utmp' file
|
||||
struct utmpx utmpxInfo;
|
||||
memset(&utmpxInfo, 0, sizeof(utmpxInfo));
|
||||
|
||||
Reference in New Issue
Block a user