Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

core.sys.posix.sys.mman: Split mman OS flags from C runtime functions #3679

Merged
merged 1 commit into from Jan 18, 2022

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Jan 18, 2022

The reverse of #3678. All mman.h flags are tied to the OS, not the C runtime. Having these flags behind CRuntime_Glibc again breaks kFreeBSD, because the underlying kernel expects the FreeBSD flags to be passed. So all flags have been moved into OS-specific version blocks, whilst the functions are still behind C-specific versions.

@Geod24 this would also fix the garbage collector on mips-musl and ppc64-musl targets, because you only had x86-specific flags declared.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @ibuclaw!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + druntime#3679"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants