MINOR: tools: use public interface for FreeBSD get_exec_path()
authorBrooks Davis <brooks@one-eyed-alien.net>
Wed, 28 Feb 2024 18:12:40 +0000 (18:12 +0000)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Mar 2024 18:00:37 +0000 (19:00 +0100)
commitc03a02388257e21810c534d50a93658e61a83494
tree54723aa0c4fc3681bf5d1f3ae8dd4cb14735e2db
parent3262c2ddcdbc832d0a60b89257edcd598f20371d
MINOR: tools: use public interface for FreeBSD get_exec_path()

Where possible (FreeBSD 13+), use the public, documented interface to
the ELF auxiliary argument vector: elf_aux_info().

__elf_aux_vector is a private interface exported so that the runtime
linker can set its value during process startup and not intended for
public consumption.  In FreeBSD 15 it has been removed from libc and
moved to libsys.
src/tools.c