diff --git a/include/dmlc/build_config_default.h b/include/dmlc/build_config_default.h index 210e0550a..20e603d4e 100644 --- a/include/dmlc/build_config_default.h +++ b/include/dmlc/build_config_default.h @@ -21,7 +21,8 @@ && !defined(__sun) && !defined(__SVR4)\ && !(defined __MINGW64__) && !(defined __ANDROID__))\ && !defined(__CYGWIN__) && !defined(__EMSCRIPTEN__)\ - && !defined(__RISCV__) && !defined(__hexagon__) + && !defined(__RISCV__) && !defined(__hexagon__)\ + && !defined(__QNX__) #if !defined(DMLC_LOG_STACK_TRACE) #define DMLC_LOG_STACK_TRACE 1 #define DMLC_EXECINFO_H diff --git a/include/dmlc/endian.h b/include/dmlc/endian.h index c72739e76..868709b00 100644 --- a/include/dmlc/endian.h +++ b/include/dmlc/endian.h @@ -21,6 +21,9 @@ #elif defined(__FreeBSD__) || defined(__OpenBSD__) #include #define DMLC_LITTLE_ENDIAN (_BYTE_ORDER == _LITTLE_ENDIAN) + #elif defined(__QNX__) + #include + #define DMLC_LITTLE_ENDIAN (BYTE_ORDER == LITTLE_ENDIAN) #elif defined(__EMSCRIPTEN__) || defined(__hexagon__) #define DMLC_LITTLE_ENDIAN 1 #elif defined(__sun) || defined(sun)