You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bn...@apache.org on 2022/08/04 22:11:11 UTC

[trafficserver] branch master updated: Fix compile on M1 Mac (#8999)

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

bneradt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 697da390e Fix compile on M1 Mac (#8999)
697da390e is described below

commit 697da390e93d214dedcc8b2a1f31f4c1ff8830c2
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.
---
 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