Merge pull request #41094 from HarryLeeIBM/hlee-s390x-zlib-ng

Fix zlib-ng build issue for s390x
This commit is contained in:
Alexey Milovidov 2022-09-18 07:55:20 +03:00 committed by GitHub
commit 7e93dbfcd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,8 +2,10 @@ set (SOURCE_DIR ${CMAKE_SOURCE_DIR}/contrib/zlib-ng)
add_definitions(-DZLIB_COMPAT) add_definitions(-DZLIB_COMPAT)
add_definitions(-DWITH_GZFILEOP) add_definitions(-DWITH_GZFILEOP)
add_definitions(-DUNALIGNED_OK) if(NOT ARCH_S390X)
add_definitions(-DUNALIGNED64_OK) add_definitions(-DUNALIGNED_OK)
add_definitions(-DUNALIGNED64_OK)
endif()
set (HAVE_UNISTD_H 1) set (HAVE_UNISTD_H 1)
add_definitions(-D_LARGEFILE64_SOURCE=1 -D__USE_LARGEFILE64) add_definitions(-D_LARGEFILE64_SOURCE=1 -D__USE_LARGEFILE64)