diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 45509b2..853e0e2 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -9,6 +9,11 @@ # ################################################# +# little/big endian? +include(TestBigEndian) +test_big_endian(WORDS_BIGENDIAN) + + # hal pkg_search_module( HAL hal ) if( NOT HAL_FOUND ) diff --git a/config.h.cmake b/config.h.cmake index 97e002c..c992f3f 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -1 +1,5 @@ #define KNETWORKMANAGER_VERSION_STRING "@KNETWORKMANAGER_VERSION@" + +/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most + significant byte first (like Motorola and SPARC, unlike Intel). */ +#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@ diff --git a/knetworkmanager-0.8/src/sha1.cpp b/knetworkmanager-0.8/src/sha1.cpp index 74f4df9..180f4bb 100644 --- a/knetworkmanager-0.8/src/sha1.cpp +++ b/knetworkmanager-0.8/src/sha1.cpp @@ -12,6 +12,8 @@ * See README and COPYING for more details. */ +#include "config.h" + #include #include