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:
parent
52a451f4b8
commit
6547451f32
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user