summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/os/os_misc.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2014-10-10 22:40:21 -0700
committerVinson Lee <vlee@freedesktop.org>2014-10-13 23:40:46 -0700
commita2fd55cfb65d3933c27ed6c2259966a98acc55eb (patch)
tree12c7cda2de9dd9f12a50aa68eb2ed91bd62b6739 /src/gallium/auxiliary/os/os_misc.c
parent291be28476ea60c6fb1eb2a882e2e25def5d3735 (diff)
downloadexternal_mesa3d-a2fd55cfb65d3933c27ed6c2259966a98acc55eb.zip
external_mesa3d-a2fd55cfb65d3933c27ed6c2259966a98acc55eb.tar.gz
external_mesa3d-a2fd55cfb65d3933c27ed6c2259966a98acc55eb.tar.bz2
auxilary/os: Add DragonFly BSD support in os_get_total_physical_memory.
This patch fixes this build error on DragonFly BSD. CC os/os_misc.lo os/os_misc.c: In function 'os_get_total_physical_memory': os/os_misc.c:132:2: error: #error Unsupported *BSD Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/os/os_misc.c')
-rw-r--r--src/gallium/auxiliary/os/os_misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/os/os_misc.c b/src/gallium/auxiliary/os/os_misc.c
index 4c5a22d..ebf033c 100644
--- a/src/gallium/auxiliary/os/os_misc.c
+++ b/src/gallium/auxiliary/os/os_misc.c
@@ -128,6 +128,8 @@ os_get_total_physical_memory(uint64_t *size)
mib[1] = HW_PHYSMEM64;
#elif defined(PIPE_OS_FREEBSD)
mib[1] = HW_REALMEM;
+#elif defined(PIPE_OS_DRAGONFLY)
+ mib[1] = HW_PHYSMEM;
#else
#error Unsupported *BSD
#endif