I have compiled 7.1 b3 in QNX but to let postgresql works I changed something.
In src/backend/port/qnx4/sem.c
#define SEMMAX (PROC_NSEMS_PER_SET) ----------------------OLD
#define SEMMAX (PROC_NSEMS_PER_SET + 1) ----------------------NEW
in src/include/storage/s_lock.h
#if defined(__i386__) ----------------------OLD
#if (defined(__i386__) && !defined(__QNX__)) ----------------------NEW
in src/interfaces/ecpg/preproc/pgc.c
#ifndef ECHO ---------------------OLD
#ifndef (ECHO || defined(__QNX__)) ----------------------NEW
Attached are the files
Maurizio Cauci
DREAMTECH di Cauci Maurizio
Via Ronchetti, 2 - 21013 Gallarate (VA)
www.dreamtech-it.com