projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
291be28
)
auxilary/os: Add DragonFly BSD support in os_get_total_physical_memory.
author
Vinson Lee
<vlee@freedesktop.org>
Sat, 11 Oct 2014 05:40:21 +0000
(22:40 -0700)
committer
Vinson Lee
<vlee@freedesktop.org>
Tue, 14 Oct 2014 06:40:46 +0000
(23:40 -0700)
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>
src/gallium/auxiliary/os/os_misc.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/os/os_misc.c
b/src/gallium/auxiliary/os/os_misc.c
index 4c5a22d0ef8e337b99168735d347c8bbed9efd45..ebf033c99deb2bca4cc4c5f6c1f4987e00702e7e 100644
(file)
--- 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