diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-08-20 14:51:12 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-08-20 15:03:46 +0200 |
commit | 244d60de2f16840afea17519a7b13b04c16f6acd (patch) | |
tree | 3a2f9a7afcc5d718894a7a829f42dbffd63cb424 /src/set_elem.c | |
parent | b33cc22312b2d23cdc2a21912596206360c7ac06 (diff) |
utils: define xfree() as macro
Original description from Thomas Petazzoni:
When ELF binaries and shared libraries are used, the internal
functions of libnftnl such as xfree() are not visible to the outside
world (their visibility is 'hidden'). Therefore, the fact that other
programs (especially nftables) may have symbols with the same name
does not cause any problem.
However, when doing static linking on a non-ELF platform (such as
Blackfin, which uses the FLAT binary format), there is no way of
encoding this visibility. Therefore, the xfree() symbols of libnftnl
becomes visible to the outside world, causing a conflict with the
xfree() symbol defined by nftables.
To solve this, this patch convers xfree as a macro instead of
a function.
Reported-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/set_elem.c')
0 files changed, 0 insertions, 0 deletions