Kaydet (Commit) d52c7f29 authored tarafından Pedro Giffuni's avatar Pedro Giffuni

FreeBSD: Small cleanup and enhancement.

Reviewed by:	Don Lewis
üst 3dd63a6f
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#if defined (SOLARIS) || (FREEBSD) #if defined (FREEBSD) || defined (SOLARIS)
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
......
...@@ -1085,7 +1085,7 @@ SAL_CALL osl_mapFile ( ...@@ -1085,7 +1085,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 (FREEBSD) || defined (MACOSX)
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