Add symbols for target endianness.

This commit is contained in:
Jim Hague 2019-10-14 09:47:03 +01:00
parent d1dca186bc
commit b8df26194e
2 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,7 @@ include(CheckLibraryExists)
include(CheckIncludeFile) include(CheckIncludeFile)
include(CheckSymbolExists) include(CheckSymbolExists)
include(CheckTypeSize) include(CheckTypeSize)
include(TestBigEndian)
project(getdns VERSION ${PACKAGE_VERSION}) project(getdns VERSION ${PACKAGE_VERSION})
@ -88,6 +89,9 @@ elseif (UNIX)
endif() endif()
endif () endif ()
test_big_endian(TARGET_IS_BIG_ENDIAN)
set(HAVE_TARGET_ENDIANNESS 1)
# File locations # File locations
set(TRUST_ANCHOR_FILE "${CMAKE_INSTALL_FULL_SYSCONF_DIR}/unbound/getdns-root.key") set(TRUST_ANCHOR_FILE "${CMAKE_INSTALL_FULL_SYSCONF_DIR}/unbound/getdns-root.key")
set(GETDNS_FN_RESOLVCONF "${CMAKE_INSTALL_FULL_SYSCONF_DIR}/resolv.conf") set(GETDNS_FN_RESOLVCONF "${CMAKE_INSTALL_FULL_SYSCONF_DIR}/resolv.conf")

View File

@ -155,6 +155,9 @@
#cmakedefine STRPTIME_WORKS 1 #cmakedefine STRPTIME_WORKS 1
#cmakedefine HAVE_TARGET_ENDIANNESS
#cmakedefine TARGET_IS_BIG_ENDIAN
#ifdef HAVE___FUNC__ #ifdef HAVE___FUNC__
#define __FUNC__ __func__ #define __FUNC__ __func__
#else #else