libnl: Fix building with uClibc
authorAlexey Brodkin <Alexey.Brodkin@synopsys.com>
Mon, 13 Mar 2017 09:47:45 +0000 (12:47 +0300)
committerJo-Philipp Wich <jo@mein.io>
Wed, 13 Dec 2017 13:45:00 +0000 (14:45 +0100)
commit37aae44a478bceeb0c9ced2e97404724bf5059bd
treeb4541940cbada1fd011eb7f18c4481d70fa71e78
parent950439234e7f0b2ad7879abe45adfc556f2ed08c
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>
(cherry picked from commit 51d9ac61c711e7e00f8f2eaf5b3503238864508a)
package/libs/libnl/patches/0001-lib-Escape-usage-of-strerror_l-if-it-doesn-t-exist-i.patch [new file with mode: 0644]