1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Solaris doesn't have MAP_FILE.

llvm-svn: 16682
This commit is contained in:
Chris Lattner 2004-10-05 00:46:21 +00:00
parent 52a451f4b8
commit 6547451f32

View File

@ -76,7 +76,10 @@ void MappedFile::unmap() {
void* MappedFile::map() {
if (!isMapped()) {
int prot = PROT_NONE;
int flags = MAP_FILE;
int flags = 0;
#ifdef MAP_FILE
flags |= MAP_FILE;
#endif
if (options_ == 0) {
prot = PROT_READ;
flags = MAP_PRIVATE;