Index: src/OFObject.m ================================================================== --- src/OFObject.m +++ src/OFObject.m @@ -23,10 +23,14 @@ #include #include #include + +#ifdef __QNX__ +# include +#endif #import "OFObject.h" #import "OFAutoreleasePool.h" #import "OFAllocFailedException.h" @@ -215,10 +219,14 @@ #if defined(_WIN32) SYSTEM_INFO si; GetSystemInfo(&si); of_pagesize = si.dwPageSize; of_num_cpus = si.dwNumberOfProcessors; +#elif defined(__QNX__) + if ((of_pagesize = sysconf(_SC_PAGESIZE)) < 1) + of_pagesize = 4096; + of_num_cpus = _syspage_ptr->num_cpu; #else # ifdef _SC_PAGESIZE if ((of_pagesize = sysconf(_SC_PAGESIZE)) < 1) # endif of_pagesize = 4096;