microsoft / mimalloc

mimalloc is a compact general purpose allocator with excellent performance.
MIT License
9.74k stars 793 forks source link

Use proper libc stubs instead of direct syscalls on OpenBSD #821

Closed blackgnezdo closed 4 months ago

blackgnezdo commented 8 months ago

Make #include fcntl.h unconditional to avoid implicit definitions.


As OpenBSD is removing syscall function from libc we are doing sweeps through the ported software to make sure it still compiles cleanly. This change enables us to build mimalloc without warnings.

daanx commented 4 months ago

Thank you so much for the PR; I merged manually for now as the PR was not based on dev. Great to hear it works for openBSD!