summaryrefslogtreecommitdiff
path: root/config.h.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <vvaintroub@macbook.local>2010-01-21 01:42:17 +0100
committerVladislav Vaintroub <vvaintroub@macbook.local>2010-01-21 01:42:17 +0100
commit32cbda18fbe68489b9944430200fa6ce21f7000d (patch)
tree9dde31e085ed7485c056e95cbf358adc2b42ec99 /config.h.cmake
parent6e84defdd488b25a3b40224164b4a345a3207da9 (diff)
downloadmariadb-git-32cbda18fbe68489b9944430200fa6ce21f7000d.tar.gz
Fix failing yassl tests on OSX
WORDS_BIGENDIAN was wrongly defined to 1
Diffstat (limited to 'config.h.cmake')
-rw-r--r--config.h.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/config.h.cmake b/config.h.cmake
index 8c0c8ae3094..e101a02e295 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -428,7 +428,13 @@
#endif
#define STRUCT_RLIMIT struct rlimit
-#cmakedefine WORDS_BIGENDIAN 1
+#ifdef __APPLE__
+ #if __BIG_ENDIAN
+ #define WORDS_BIGENDIAN 1
+ #endif
+#else
+#cmakedefine WORDS_BIGENDIAN 1
+#endif
/* Define to `__inline__' or `__inline' if that's what the C compiler calls
it, or to nothing if 'inline' is not supported under any name. */