You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by pf...@apache.org on 2015/10/07 22:30:13 UTC
svn commit: r1707381 - in /openoffice/trunk/main/sal/osl/unx: backtrace.h
file.cxx
Author: pfg
Date: Wed Oct 7 20:30:12 2015
New Revision: 1707381
URL: http://svn.apache.org/viewvc?rev=1707381&view=rev
Log:
FreeBSD: Small cleanup and enhancement.
Reviewed by: Don Lewis
Modified:
openoffice/trunk/main/sal/osl/unx/backtrace.h
openoffice/trunk/main/sal/osl/unx/file.cxx
Modified: openoffice/trunk/main/sal/osl/unx/backtrace.h
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/osl/unx/backtrace.h?rev=1707381&r1=1707380&r2=1707381&view=diff
==============================================================================
--- openoffice/trunk/main/sal/osl/unx/backtrace.h (original)
+++ openoffice/trunk/main/sal/osl/unx/backtrace.h Wed Oct 7 20:30:12 2015
@@ -22,7 +22,7 @@
-#if defined (SOLARIS) || (FREEBSD)
+#if defined (FREEBSD) || defined (SOLARIS)
#ifdef __cplusplus
extern "C" {
Modified: openoffice/trunk/main/sal/osl/unx/file.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/sal/osl/unx/file.cxx?rev=1707381&r1=1707380&r2=1707381&view=diff
==============================================================================
--- openoffice/trunk/main/sal/osl/unx/file.cxx (original)
+++ openoffice/trunk/main/sal/osl/unx/file.cxx Wed Oct 7 20:30:12 2015
@@ -1085,7 +1085,7 @@ SAL_CALL osl_mapFile (
// OS simultaneously pages in the rest); on other platforms, it remains
// to be evaluated whether madvise or equivalent is available and
// actually useful:
-#if defined MACOSX
+#if defined (FREEBSD) || defined (MACOSX)
int e = posix_madvise(p, nLength, POSIX_MADV_WILLNEED);
if (e != 0)
{