]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: tools: unbreak resolve_sym_name() on non-GNU platforms
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Mar 2020 09:19:36 +0000 (10:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Mar 2020 11:04:07 +0000 (12:04 +0100)
commit9133e48f2a6fa9deccfe02798dcb2f2abd26ed9e
tree797d1bfc08fcbbc0e1f6cab7ccbfebfb6a1777b5
parenta91b7946bdd69fd837085f67f085565317efb1b1
BUILD: tools: unbreak resolve_sym_name() on non-GNU platforms

resolve_sym_name() doesn't build when USE_DL is set on non-GNU platforms
because "Elf(W)" isn't defined. Since it's only used for dladdr1(), let's
refactor all this so that we can completely ifdef out that part on other
platforms. Now we have a separate function to perform the call depending
on the platform and it only returns the size when available.
src/standard.c