Porting POSIX compliant code to QNX

Hi,
I am trying to port GNU source code to QNX (which I believe is supposed to be incredibly simple! :smiley: ) and I am looking for the syntax to use in macros to include files for QNX. I have tried code such as

#ifdef qnx
#include <stdio.h>
#endif

and

#ifdef QNX
#include <stdio.h>
#endif

but it still does not include the header.
All help is much appreciated!

Thanks
RK

Hey RK,

QNX is what you are looking for.

Greetz,

Martin.

Thanks! Will try right away!

just to be clear, there are two underscores before and after.

btw, this is for codes that are for both qnx4 and qnx6. If you want something that is ONLY for QNX 6, you should use
#ifdef QNXNTO
instead.