Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: attempt fix for compiler error on Linux
xmap.c: In function ‘commandt_xmap’: xmap.c:18:9: error: ‘MAP_ANONYMOUS’ undeclared (first use in this function) 18 | MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE, | ^~~~~~~~~~~~~ xmap.c:18:9: note: each undeclared identifier is reported only once for each function it appears in xmap.c:18:25: error: ‘MAP_NORESERVE’ undeclared (first use in this function) 18 | MAP_ANONYMOUS | MAP_NORESERVE | MAP_PRIVATE, | ^~~~~~~~~~~~~ GNU extensions, apparently, and when I was using Clang default target (gnu17) I wasn't seeing this (and on Linux/GCC, not sure what the default is, but it wasn't needed).
- Loading branch information