Merge pull request #274 from Tyler-IN/agnostic-posix-musl-support

Posix / Musl Compatibility
This commit is contained in:
Daan 2020-07-20 11:34:58 -07:00 committed by GitHub
commit 457fcbd9d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,12 @@ terms of the MIT license. A copy of the license can be found in the file
#include <sys/mman.h> // mmap
#include <unistd.h> // sysconf
#if defined(__linux__)
#include <features.h>
#if defined(__GLIBC__)
#include <linux/mman.h> // linux mmap flags
#else
#include <sys/mman.h>
#endif
#endif
#if defined(__APPLE__)
#include <TargetConditionals.h>