Kaydet (Commit) 92c5bc7d authored tarafından Richard PALO's avatar Richard PALO Kaydeden (comit) Michael Stahl

SOLARIS can use/should use posix_madvise under certain conditions.

Change-Id: Idc40752b4beee932b5912e6df9fe6acb15571201
Signed-off-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 7970fa51
...@@ -1171,7 +1171,7 @@ SAL_CALL osl_mapFile ( ...@@ -1171,7 +1171,7 @@ SAL_CALL osl_mapFile (
// OS simultaneously pages in the rest); on other platforms, it remains // OS simultaneously pages in the rest); on other platforms, it remains
// to be evaluated whether madvise or equivalent is available and // to be evaluated whether madvise or equivalent is available and
// actually useful: // actually useful:
#if defined MACOSX #if defined MACOSX || ( defined(SOLARIS) && ( !defined(__XOPEN_OR_POSIX) || defined(_XPG6) || defined(__EXTENSIONS__) ) )
int e = posix_madvise(p, nLength, POSIX_MADV_WILLNEED); int e = posix_madvise(p, nLength, POSIX_MADV_WILLNEED);
if (e != 0) if (e != 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment