You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2018/10/10 17:42:37 UTC
[trafficserver] 04/04: Fix build for mips64el architecture on Debian
This is an automated email from the ASF dual-hosted git repository.
bcall pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 518ea6d0261ae220f02f0f8d3d9c9cdc97e22bf6
Author: Jean Baptiste Favre <gi...@jbfavre.org>
AuthorDate: Thu Sep 27 10:32:31 2018 +0200
Fix build for mips64el architecture on Debian
(cherry picked from commit cf9ec1be2c732c1b7c067d24ef73fe576511bd71)
---
include/tscore/ink_queue.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/tscore/ink_queue.h b/include/tscore/ink_queue.h
index 7f75ad9..6d242cd 100644
--- a/include/tscore/ink_queue.h
+++ b/include/tscore/ink_queue.h
@@ -136,7 +136,7 @@ union head_p {
#define SET_FREELIST_POINTER_VERSION(_x, _p, _v) \
(_x).s.pointer = _p; \
(_x).s.version = _v
-#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__aarch64__)
+#elif defined(__x86_64__) || defined(__ia64__) || defined(__powerpc64__) || defined(__aarch64__) || defined(__mips64)
#define FREELIST_POINTER(_x) \
((void *)(((((intptr_t)(_x).data) << 16) >> 16) | (((~((((intptr_t)(_x).data) << 16 >> 63) - 1)) >> 48) << 48))) // sign extend
#define FREELIST_VERSION(_x) (((intptr_t)(_x).data) >> 48)