Skip to content

Commit

Permalink
Fix endian issue in snappy lib for s390x
Browse files Browse the repository at this point in the history
  • Loading branch information
HarryLeeIBM committed Jan 26, 2023
1 parent ee31da9 commit 2785790
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/snappy-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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 2785790

Please sign in to comment.