Skip to content
Snippets Groups Projects
Commit 54cc3cdf authored by Jonathan Gray's avatar Jonathan Gray Committed by Emil Velikov
Browse files

auxilary/os: correct sysctl use in os_get_total_physical_memory()


The length argument passed to sysctl was the size of the pointer
not the type.  The result of this is sysctl calls would fail on
32 bit BSD/Mac OS X.

Additionally the wrong pointer was passed as an argument to store
the result of the sysctl call.

Cc: "10.4, 10.5" <mesa-stable@lists.freedesktop.org>
Signed-off-by: default avatarJonathan Gray <jsg@jsg.id.au>
Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
(cherry picked from commit 7983a3d2)
parent c0f425bb
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment