Hi Alex,

It looks like there have been substantial changes since the 4.9.1 release.
I'll have to get a little more familiar with the codebase. Stay tuned...

JP

On Tue, Apr 2, 2024 at 2:01 PM Alex Naumov <alexander_nau...@opensuse.org>
wrote:

> Hey,
>
> Thanks for your patch. Can you do it for master branch?
> And a bit more info about exactly what you tested with it.
>
> Cheers,
> Alex
>
> On Tue, Apr 2, 2024 at 10:19 PM Juan Pablo Samper <ju...@safeai.ai> wrote:
>
>> ---
>>  src/os.h   | 2 +-
>>  src/utmp.c | 6 +++---
>>  2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/src/os.h b/src/os.h
>> index 2a1c2ca..15ea21d 100644
>> --- a/src/os.h
>> +++ b/src/os.h
>> @@ -230,7 +230,7 @@ extern int errno;
>>   * Joe Traister: On AIX4, programs like irc won't work if screen
>>   * uses TIOCPKT (select fails to return on pty read).
>>   */
>> -#if defined(sgi) || defined(DGUX) || defined(_IBMR2)
>> +#if defined(sgi) || defined(DGUX) || defined(_IBMR2) || defined(__QNX__)
>>  # undef TIOCPKT
>>  #endif
>>
>> diff --git a/src/utmp.c b/src/utmp.c
>> index 1fb3603..7a058f6 100644
>> --- a/src/utmp.c
>> +++ b/src/utmp.c
>> @@ -107,7 +107,7 @@ static int utmpfd = -1;
>>  #endif
>>
>>
>> -# if defined(GETUTENT) && (!defined(SVR4) || defined(__hpux)) && !
>> defined(__CYGWIN__)
>> +# if defined(GETUTENT) && (!defined(SVR4) || defined(__hpux)) && !
>> defined(__CYGWIN__) && ! defined(__QNX__)
>>  #  if defined(hpux) /* cruel hpux release 8.0 */
>>  #   define pututline _pututline
>>  #  endif /* hpux */
>> @@ -595,7 +595,7 @@ struct win *wi;
>>      }
>>  #endif
>>    setutent();
>> -#ifndef __CYGWIN__
>> +#if !defined(__CYGWIN__) && !defined(__QNX__)
>>    return pututline(u) != 0;
>>  #else
>>    return 1;
>> @@ -607,7 +607,7 @@ makedead(u)
>>  struct utmp *u;
>>  {
>>    u->ut_type = DEAD_PROCESS;
>> -#if (!defined(linux) || defined(EMPTY)) && !defined(__CYGWIN__)
>> +#if (!defined(linux) || defined(EMPTY)) && !defined(__CYGWIN__) &&
>> !defined(__QNX__)
>>    u->ut_exit.e_termination = 0;
>>    u->ut_exit.e_exit = 0;
>>  #endif
>> --
>> 2.34.1
>>
>>
>>

Reply via email to