mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-9617 solaris sparc build fails on 10.0
Spider: SunPro only supports array declarations with constant size. Spider already has a workaround for that, inside #ifdef _MSC_VER. Enable this code also for __SUNPRO_CC Connect: Don't use anonymous union. Cast for mmap. Don't pass gcc-ish -W... options to SunPro
This commit is contained in:
@@ -190,8 +190,8 @@ bool CloseMemMap(void *memory, size_t dwSize)
|
||||
{
|
||||
if (memory) {
|
||||
// All this must be redesigned
|
||||
int rc = msync(memory, dwSize, MS_SYNC);
|
||||
return (munmap(memory, dwSize) < 0) ? true : false;
|
||||
int rc = msync((char*)memory, dwSize, MS_SYNC);
|
||||
return (munmap((char*)memory, dwSize) < 0) ? true : false;
|
||||
} else
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user