From cb66df0779e3510fa64d1fef30f9238f7ac8ea84 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Mon, 30 May 2016 15:03:14 +0200 Subject: [PATCH] CMake: Not all platforms have endian.h, so use the build system's endianess check. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index aad3f71..05892ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ project(LibVNCServer) include(CheckFunctionExists) include(CheckIncludeFile) include(CheckTypeSize) +include(TestBigEndian) include(CheckCSourceCompiles) include(CheckCXXSourceCompiles) include(CheckCSourceRuns) @@ -173,6 +174,8 @@ if(NOT HAVE_LIBVNCSERVER_IN_ADDR_T) set(LIBVNCSERVER_NEED_INADDR_T 1) endif(NOT HAVE_LIBVNCSERVER_IN_ADDR_T) +TEST_BIG_ENDIAN(LIBVNCSERVER_WORDS_BIGENDIAN) + # TODO: # LIBVNCSERVER_ENOENT_WORKAROUND # inline