[all-commits] [llvm/llvm-project] b16e01: [flang-rt] Fix macOS build: define _DARWIN_C_SOURC...
Sairudra More via All-commits
all-commits at lists.llvm.org
Tue Mar 24 21:53:53 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b16e012603de706c6fa172af92767a22094fb8b1
https://github.com/llvm/llvm-project/commit/b16e012603de706c6fa172af92767a22094fb8b1
Author: Sairudra More <sairudra60 at gmail.com>
Date: 2026-03-25 (Wed, 25 Mar 2026)
Changed paths:
M flang-rt/lib/runtime/trampoline.cpp
Log Message:
-----------
[flang-rt] Fix macOS build: define _DARWIN_C_SOURCE for mmap flags (#186142)
On Darwin, `sys/mman.h` hides `MAP_JIT` and `MAP_ANON(YMOUS)` when
`_POSIX_C_SOURCE` is defined unless `_DARWIN_C_SOURCE` is also defined.
`trampoline.cpp` uses those flags, so this change defines
`_DARWIN_C_SOURCE` before including `<sys/mman.h>` in this file.
Fixes build failure reported in #183108.
Co-authored-by: Sairudra More <moresair at pe31.hpc.amslabs.hpecorp.net>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list