benchmarks/lzbench: try to unbreak the port's build against newer Clang
As of September 2023 (llvmorg-18.1.0-rc1) /usr/include/c++/v1/__config no longer includes <sys/endian.h>, because both Clang and GCC always define __BYTE_ORDER__ macro. This had accidentally revealed a problem in Kanzi data compressor which was including <machine/endian.h> to no avail. Replace it with <sys/endian.h> to obtain bswap??() definitions. Reported by: pkg-fallout PR: 285285 LLVM commit: https://github.com/llvm/llvm-project/commit/0a97720
This commit is contained in:
@@ -22,6 +22,8 @@ post-patch:
|
||||
${WRKSRC}/_lzbench/lzbench.h
|
||||
@${REINPLACE_CMD} -e 's,shell echo|$$(CC),& 2>/dev/null,' \
|
||||
${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e '/^#if defined(__FreeBSD__)/,+1s,machine,sys,' \
|
||||
${WRKSRC}/kanzi-cpp/src/Memory.hpp
|
||||
@${REINPLACE_CMD} -e '/pithy_Load64/s,vld1_u64(,&(uint64_t *),' \
|
||||
${WRKSRC}/pithy/pithy.cpp
|
||||
@${REINPLACE_CMD} -e '/^#if/s,defined(__aarch64__),& ||\
|
||||
|
||||
Reference in New Issue
Block a user