Commit 8b27574a by Nicolas Capens

Use MAP_ANON if MAP_ANONYMOUS is not defined.

MAP_ANON has been deprecated in favor of MAP_ANONYMOUS, but Mac OS only defines MAP_ANON. Bug chromium:630728 Change-Id: I7345a5f9227acbc0caa29d8103855ab531f16499 Reviewed-on: https://swiftshader-review.googlesource.com/8531Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 113e33ac
...@@ -40,6 +40,9 @@ ...@@ -40,6 +40,9 @@
#include <Windows.h> #include <Windows.h>
#else #else
#include <sys/mman.h> #include <sys/mman.h>
#if !defined(MAP_ANONYMOUS)
#define MAP_ANONYMOUS MAP_ANON
#endif
#endif #endif
#include <mutex> #include <mutex>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment