At a high-level, this patch adds support for QNX 7.1 by adding
'#ifdef/ifndef __QNX__' in the right places.
The patch is based on the latest release v.4.9.1.
You'll need a valid QNX toolchain to compile and test it:
source /path/to/qnx/install/qnxsdp-env.sh
CC="${QNX_HOST}/usr/bin/aarch64-unknown-nto-qnx7.1.0-gcc"
CFLAGS="-D__QNX__"
LDFLAGS='-lsocket'
./configure --host=aarch64
OR
source /path/to/qnx/install/qnxsdp-env.sh
CC="${QNX_HOST}/usr/bin/x86_64-pc-nto-qnx7.1.0-gcc"
CFLAGS="-D__QNX__"
LDFLAGS='-lsocket'
./configure --host=x86_64
Juan Pablo Samper (1):
Add QNX support
src/os.h | 2 +-
src/utmp.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
--
2.34.1