Skip to content

Commit a7671ad

Browse files
committed
CMake: check for htobe64 in sys/endian.h as well
Closes #499 Credits and thanks go to Derek Schrock for pointing this out.
1 parent cc6e283 commit a7671ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ check_function_exists(strerror LIBVNCSERVER_HAVE_STRERROR)
212212
check_function_exists(strstr LIBVNCSERVER_HAVE_STRSTR)
213213

214214
check_symbol_exists(htobe64 "endian.h" LIBVNCSERVER_HAVE_HTOBE64)
215+
check_symbol_exists(htobe64 "sys/endian.h" LIBVNCSERVER_HAVE_HTOBE64)
215216
check_symbol_exists(OSSwapHostToBigInt64 "libkern/OSByteOrder.h" LIBVNCSERVER_HAVE_OSSWAPHOSTTOBIGINT64)
216217

217218
if(WITH_THREADS AND Threads_FOUND)

0 commit comments

Comments
 (0)