summaryrefslogtreecommitdiff
path: root/sal/rtl/source
diff options
context:
space:
mode:
authorFrancois Tigeot <ftigeot@wolfpond.org>2011-02-15 12:15:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2011-02-15 15:55:19 +0000
commitf091f5b395cc462a01a52aa7b535202e8b232463 (patch)
treecf609d629fbca72c5808de82e57b60a29a78df9a /sal/rtl/source
parenteb07114a5c5d144e894b455c8b6f83e67463edf5 (diff)
dragonfly stuff
Diffstat (limited to 'sal/rtl/source')
-rw-r--r--sal/rtl/source/alloc_arena.c2
-rw-r--r--sal/rtl/source/macro.hxx2
2 files changed, 3 insertions, 1 deletions
diff --git a/sal/rtl/source/alloc_arena.c b/sal/rtl/source/alloc_arena.c
index c782ccf43b63..6766cf91e18d 100644
--- a/sal/rtl/source/alloc_arena.c
+++ b/sal/rtl/source/alloc_arena.c
@@ -1254,7 +1254,7 @@ static sal_Size
rtl_machdep_pagesize (void)
{
#if defined(SAL_UNX)
-#if defined(FREEBSD) || defined(NETBSD)
+#if defined(FREEBSD) || defined(NETBSD) || defined(DRAGONFLY)
return ((sal_Size)getpagesize());
#else /* POSIX */
return ((sal_Size)sysconf(_SC_PAGESIZE));
diff --git a/sal/rtl/source/macro.hxx b/sal/rtl/source/macro.hxx
index bb86b7d9ae39..822fdd1ef2d5 100644
--- a/sal/rtl/source/macro.hxx
+++ b/sal/rtl/source/macro.hxx
@@ -55,6 +55,8 @@
#define THIS_OS "AIX"
#elif defined OPENBSD
#define THIS_OS "OpenBSD"
+#elif defined DRAGONFLY
+#define THIS_OS "DragonFly"
#endif
#if ! defined THIS_OS