GNOME Bugzilla – Bug 741933
tests: use MAP_ANON instead of MAP_ANONYMOUS
Last modified: 2014-12-28 04:37:22 UTC
This was introduced in a test case a few months ago and breaks the build on Mac OS. According to manpages on Linux these two are the same (although it lists MAP_ANON as a deprecated alias for the other). On Mac OS, however, there is only MAP_ANON. Interesting to note that neither of these are in POSIX.
Created attachment 293307 [details] [review] tests: use MAP_ANON instead of MAP_ANONYMOUS
Review of attachment 293307 [details] [review]: LGTM, but maybe we could do this as well: #ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON #endif this way, we get to keep MAP_ANONYMOUS on Linux. to be fair, though, it's fine by me either way.
Pushed the suggested fix with #ifndef #define. Seems to work on Mac OS and doesn't break Linux either.