diff --git a/core/unixptyprocess.cpp b/core/unixptyprocess.cpp index 37c4646..e1081f0 100644 --- a/core/unixptyprocess.cpp +++ b/core/unixptyprocess.cpp @@ -3,7 +3,7 @@ #include #include -#ifndef __ANDROID__ +#if !defined(Q_OS_ANDROID) && !defined(Q_OS_FREEBSD) #include #endif #include @@ -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));