util: make util_get_process_exec_path work on FreeBSD w/o procfs
authorGreg V <greg@unrelenting.technology>
Wed, 8 Apr 2020 22:41:00 +0000 (01:41 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 29 Oct 2021 06:06:05 +0000 (06:06 +0000)
commit98dbd01a96fd1d715794c0fe8ad82392882a8129
tree3e033fdbadb6381e7585e17076d5455de5b16e33
parent1d9eda1b57df4f8afa817d55ca43e1e206f223b5
util: make util_get_process_exec_path work on FreeBSD w/o procfs

sysctl is the correct way of getting the current executable's path.
procfs is not mounted by default.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1598>
src/util/u_process.c