X-Git-Url: https://rtime.felk.cvut.cz/gitweb/orte.git/blobdiff_plain/a972839535e623d5865a32ef313f826243184816..c3756b64914521d20f583c1b40bd6dae4ce5516f:/orte/include/orte/orte_config_omk_linux.h?ds=sidebyside diff --git a/orte/include/orte/orte_config_omk_linux.h b/orte/include/orte/orte_config_omk_linux.h index 3b9a89c..080641c 100644 --- a/orte/include/orte/orte_config_omk_linux.h +++ b/orte/include/orte/orte_config_omk_linux.h @@ -52,6 +52,9 @@ /* Define to 1 if you have the header file. */ #define HAVE_DLFCN_H 1 +/* Define to 1 if you have the header file. */ +#define HAVE_ENDIAN_H 1 + /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 @@ -172,6 +175,9 @@ /* Define to 1 if you have the header file. */ #define HAVE_SYS_IOCTL_H 1 +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_PARAM_H 1 + /* Define to 1 if you have the header file. */ #define HAVE_SYS_SOCKET_H 1 @@ -262,3 +268,23 @@ #ifndef __cplusplus /* #undef inline */ #endif + + +#if defined(HAVE_ENDIAN_H) || defined(HAVE_SYS_PARAM_H) + #ifdef HAVE_SYS_PARAM_H + #include + #endif + #if defined(HAVE_ENDIAN_H) && !defined(BYTE_ORDER) && !defined(__BYTE_ORDER) + #include + #endif + #if defined(__BYTE_ORDER) + #if __BYTE_ORDER == __BIG_ENDIAN + #define WORDS_BIGENDIAN 1 + #endif + #elif defined(BYTE_ORDER) + #if BYTE_ORDER == BIG_ENDIAN + #define WORDS_BIGENDIAN 1 + #endif + #endif +#endif +