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++: