mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-01-06 01:23:41 +01:00
Fixes for solaris
This commit is contained in:
parent
06564bd0b9
commit
97f1d2758d
3 changed files with 12 additions and 6 deletions
|
@ -59,11 +59,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|||
#else
|
||||
# define __LITTLE_ENDIAN 1234
|
||||
# define __BIG_ENDIAN 4321
|
||||
# if defined(__hpux)
|
||||
# define __BYTE_ORDER __BIG_ENDIAN
|
||||
# else
|
||||
# error Host has unknown byte-order.
|
||||
# endif
|
||||
|
||||
#if IS_BIG_ENDIAN
|
||||
#define __BYTE_ORDER __BIG_ENDIAN
|
||||
#else // IS_BIG_ENDIAN
|
||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
#endif // IS_BIG_ENDIAN
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
|
|
@ -7,6 +7,7 @@ include(CheckFunctionExists)
|
|||
include(CheckSymbolExists)
|
||||
include(CheckStructHasMember)
|
||||
include(CheckTypeSize)
|
||||
include(TestBigEndian)
|
||||
|
||||
|
||||
check_include_file(asm/ptrace_offsets.h HAVE_ASM_PTRACE_OFFSETS_H)
|
||||
|
@ -31,7 +32,7 @@ check_include_file(sys/types.h HAVE_SYS_TYPES_H)
|
|||
check_include_file(sys/uc_access.h HAVE_SYS_UC_ACCESS_H)
|
||||
check_function_exists(ttrace HAVE_TTRACE)
|
||||
check_include_file(unistd.h HAVE_UNISTD_H)
|
||||
|
||||
test_big_endian(IS_BIG_ENDIAN)
|
||||
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/include/config.h)
|
||||
|
|
|
@ -122,3 +122,6 @@
|
|||
|
||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
||||
/* #undef size_t */
|
||||
|
||||
#cmakedefine01 IS_BIG_ENDIAN
|
||||
|
||||
|
|
Loading…
Reference in a new issue