From 045ca5f09fcc6417fb5fd5e42fdeedddbf68841c Mon Sep 17 00:00:00 2001 From: Vitaly Date: Thu, 21 Apr 2022 16:25:53 +0300 Subject: [PATCH] Disable some minor code for Android and *BSD --- core/unixptyprocess.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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));