From 140aa6800b4c3c72baaa16152b1d6c6ad40558b4 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Wed, 10 Jan 2024 13:12:10 +0800 Subject: [PATCH] stacktrace.cpp: include syslimits.h for PATH_MAX --- src/libasr/stacktrace.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libasr/stacktrace.cpp b/src/libasr/stacktrace.cpp index c356e4b3ff..2c730a5ec5 100644 --- a/src/libasr/stacktrace.cpp +++ b/src/libasr/stacktrace.cpp @@ -15,6 +15,11 @@ // For registering SIGSEGV callbacks #include +#ifdef __APPLE__ +// For PATH_MAX +# include +#endif + // The following C headers are needed for some specific C functionality (see // the comments), which is not available in C++: