libnl: Fix building with uClibc
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Mon, 13 Mar 2017 09:47:45 +0000 (12:47 +0300)
committerFelix Fietkau <nbd@nbd.name>
Thu, 16 Mar 2017 10:28:28 +0000 (11:28 +0100)
commit51d9ac61c711e7e00f8f2eaf5b3503238864508a
tree2dbd7b0e772f56ffa530665b7f97201a15493a47
parentf9a1f322d26dfb3d3db59ffeab7c3fcc3772e8cc
libnl: Fix building with uClibc

uClibc doesn't implement strerror_l() and thus libnl starting from
3.2.29 couldn't be compiled with it any longer, see
https://github.com/thom311/libnl/commit/6c2d111177e91184073c44f83d4a6182aaba06d7

To work-around that problem we'll just do a check on strerror_l()
availability during configuration and if it's not there just fall back
to locale-less strerror().

Patch for libnl is alreadfy merged upstream, see
https://github.com/thom311/libnl/commit/e15966ac7f3b43df2acf869f98089762807d0568
and once the next libnl release happens this one must be removed from
Lede/OpenWrt.

Signed-off-by: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: Felix Fietkau <nbd@nbd.name>
Cc: John Crispin <john@phrozen.org>
Cc: Daniel Engberg <daniel.engberg.lists@pyret.net>
package/libs/libnl/patches/0001-lib-Escape-usage-of-strerror_l-if-it-doesn-t-exist-i.patch [new file with mode: 0644]