You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/08/10 17:09:56 UTC

[trafficserver] branch 9.2.x updated: Fix compile on M1 Mac (#8999)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.2.x by this push:
     new 963a1d0ba Fix compile on M1 Mac (#8999)
963a1d0ba is described below

commit 963a1d0ba2d024d16ce9caeb78527817a88f8ab5
Author: Mo Chen <un...@gmail.com>
AuthorDate: Thu Aug 4 17:11:05 2022 -0500

    Fix compile on M1 Mac (#8999)
    
    Add arm64 to the list of known stack growth directions.
    
    (cherry picked from commit 697da390e93d214dedcc8b2a1f31f4c1ff8830c2)
---
 iocore/eventsystem/UnixEventProcessor.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/iocore/eventsystem/UnixEventProcessor.cc b/iocore/eventsystem/UnixEventProcessor.cc
index 2217d6115..bbe17f177 100644
--- a/iocore/eventsystem/UnixEventProcessor.cc
+++ b/iocore/eventsystem/UnixEventProcessor.cc
@@ -140,7 +140,8 @@ public:
 void
 ThreadAffinityInitializer::setup_stack_guard(void *stack, int stackguard_pages)
 {
-#if !(defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__mips__))
+#if !(defined(__i386__) || defined(__x86_64__) || defined(__arm__) || defined(__arm64__) || defined(__aarch64__) || \
+      defined(__mips__))
 #error Unknown stack growth direction.  Determine the stack growth direction of your platform.
 // If your stack grows upwards, you need to change this function and the calculation of stack_begin in do_alloc_stack.
 #endif