mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Fix failing yassl tests on OSX
WORDS_BIGENDIAN was wrongly defined to 1
This commit is contained in:
parent
4060fe7d43
commit
6e0d562320
2 changed files with 9 additions and 3 deletions
|
@ -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. */
|
||||
|
|
|
@ -702,9 +702,9 @@ int main() {
|
|||
#
|
||||
INCLUDE(TestBigEndian)
|
||||
IF(APPLE)
|
||||
# Can'r run endian test on universal PPC/Intel binaries
|
||||
# Cannot run endian test on universal PPC/Intel binaries
|
||||
# would return inconsistent result.
|
||||
SET(WORDS_BIGENDIAN __BIG_ENDIAN CACHE INTERNAL "big endian test")
|
||||
# config.h.cmake includes a special #ifdef for Darwin
|
||||
ELSE()
|
||||
TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
|
||||
ENDIF()
|
||||
|
|
Loading…
Reference in a new issue