Skip to content

Commit

Permalink
Merge pull request #45670 from HarryLeeIBM/hlee-s390x-snappy-endian
Browse files Browse the repository at this point in the history
Fix endian issue in snappy lib for s390x
  • Loading branch information
rschu1ze committed Feb 1, 2023
2 parents 5143131 + 2785790 commit a925958
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/snappy-cmake/CMakeLists.txt
@@ -1,6 +1,10 @@
set (SOURCE_DIR "${CMAKE_SOURCE_DIR}/contrib/snappy")

set (SNAPPY_IS_BIG_ENDIAN 0)
if (ARCH_S390X)
set (SNAPPY_IS_BIG_ENDIAN 1)
else ()
set (SNAPPY_IS_BIG_ENDIAN 0)
endif()

set (HAVE_BYTESWAP_H 1)
set (HAVE_SYS_MMAN_H 1)
Expand Down

0 comments on commit a925958

Please sign in to comment.