Skip to content

Commit 71c000e

Browse files
thedixk0ekk0ek
authored andcommitted
Fix build error with HAVE_ENDIAN_H
1 parent 9058210 commit 71c000e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ target_include_directories(
165165
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
166166
target_link_libraries(zone-bench PRIVATE zone)
167167

168+
check_include_file(endian.h HAVE_ENDIAN_H)
169+
if (HAVE_ENDIAN_H)
170+
add_definitions(-DHAVE_ENDIAN_H=1)
171+
endif()
172+
168173
check_include_file(unistd.h HAVE_UNISTD_H)
169174
if(NOT HAVE_UNISTD_H)
170175
target_include_directories(

0 commit comments

Comments
 (0)