summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorPedro Giffuni <pfg@apache.org>2015-10-07 20:30:12 +0000
committerPedro Giffuni <pfg@apache.org>2015-10-07 20:30:12 +0000
commitd52c7f2946fe867b89057796a4b109c7ef95c73a (patch)
treec15b700a60b681628b83a5c9535117d20db12ab1 /sal
parent3dd63a6f7167fea8245830c4f1e10f97c0f4f39d (diff)
FreeBSD: Small cleanup and enhancement.
Reviewed by: Don Lewis
Notes
Notes: prefer: 7659ad44e3e1c955400c77dc1d45cc481faf55bf
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/backtrace.h2
-rw-r--r--sal/osl/unx/file.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/unx/backtrace.h b/sal/osl/unx/backtrace.h
index c836ee02ff70..29bf3e06e496 100644
--- a/sal/osl/unx/backtrace.h
+++ b/sal/osl/unx/backtrace.h
@@ -22,7 +22,7 @@
-#if defined (SOLARIS) || (FREEBSD)
+#if defined (FREEBSD) || defined (SOLARIS)
#ifdef __cplusplus
extern "C" {
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index f7aff4cc7b44..31373b0b409f 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -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)
{