From 512af847980e664293608eee98e444feecdaaf0f Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Sat, 11 Oct 2014 22:40:03 +0000 Subject: [PATCH] Fix support for Mips*. Patch by YunQiang Su (cf. Debian bug#748325). --- include/cln/object.h | 2 +- m4/general.m4 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/cln/object.h b/include/cln/object.h index 21d3977..2e03eb6 100644 --- a/include/cln/object.h +++ b/include/cln/object.h @@ -22,7 +22,7 @@ namespace cln { #if defined(__m68k__) #define cl_word_alignment 2 #endif -#if defined(__i386__) || defined(__mips__) || defined(__mipsel__) || (defined(__sparc__) && !defined(__arch64__)) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || (defined(__s390__) && !defined(__s390x__)) || defined(__sh__) || (defined(__x86_64__) && defined(__ILP32__)) +#if defined(__i386__) || (defined(__mips__) && !defined(__LP64__)) || (defined(__sparc__) && !defined(__arch64__)) || defined(__hppa__) || defined(__arm__) || defined(__rs6000__) || defined(__m88k__) || defined(__convex__) || (defined(__s390__) && !defined(__s390x__)) || defined(__sh__) || (defined(__x86_64__) && defined(__ILP32__)) #define cl_word_alignment 4 #endif #if defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || (defined(__sparc__) && defined(__arch64__)) || (defined(__x86_64__) && !defined(__ILP32__)) || defined(__s390x__) || defined(__aarch64__) diff --git a/m4/general.m4 b/m4/general.m4 index b573e38..2a97059 100644 --- a/m4/general.m4 +++ b/m4/general.m4 @@ -153,7 +153,7 @@ changequote(,)dnl host_cpu=arm ;; changequote([,])dnl - mips ) + mips* ) AC_CACHE_CHECK([for 64-bit MIPS], cl_cv_host_mips64, [ AC_EGREP_CPP(yes, [#if defined(_MIPS_SZLONG)