applied patch #2497172 - Fixes for POSIX build on Solaris, plus a regression
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5907 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
5199b3bd65
commit
a8d988b5c0
4 changed files with 9 additions and 6 deletions
|
@ -312,7 +312,7 @@ void MMapFile::release()
|
|||
#ifdef _WIN32
|
||||
UnmapViewOfFile(m_pView);
|
||||
#else
|
||||
munmap(m_pView, m_iMappedSize);
|
||||
munmap((char *)m_pView, m_iMappedSize);
|
||||
#endif
|
||||
m_pView = NULL;
|
||||
}
|
||||
|
@ -328,7 +328,7 @@ void MMapFile::release(void *pView, int size)
|
|||
#ifdef _WIN32
|
||||
UnmapViewOfFile(pView);
|
||||
#else
|
||||
munmap(pView, size);
|
||||
munmap((char *)pView, size);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -338,7 +338,7 @@ void MMapFile::flush(int num)
|
|||
#ifdef _WIN32
|
||||
FlushViewOfFile(m_pView, num);
|
||||
#else
|
||||
msync(m_pView, num, MS_SYNC);
|
||||
msync((char *)m_pView, num, MS_SYNC);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue