From 0510be4cc4affbc497040486d3d4a0a271985ba9 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 26 Apr 2017 20:17:18 +0200 Subject: libnl: update to 3.2.29, add patch from buildroot --- package/libnl/patches/patch-lib_utils_c | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 package/libnl/patches/patch-lib_utils_c (limited to 'package/libnl/patches/patch-lib_utils_c') diff --git a/package/libnl/patches/patch-lib_utils_c b/package/libnl/patches/patch-lib_utils_c new file mode 100644 index 000000000..3e14d4739 --- /dev/null +++ b/package/libnl/patches/patch-lib_utils_c @@ -0,0 +1,34 @@ +--- libnl-libnl3_2_29.orig/lib/utils.c 2016-12-30 15:57:01.000000000 +0100 ++++ libnl-libnl3_2_29/lib/utils.c 2017-04-26 20:09:18.137933191 +0200 +@@ -30,7 +30,9 @@ + #include + #include + #include /* exit() */ ++#ifdef HAVE_STRERROR_L + #include ++#endif + + /** + * Global variable indicating the desired level of debugging output. +@@ -123,9 +125,10 @@ int __nl_read_num_str_file(const char *p + + const char *nl_strerror_l(int err) + { ++ const char *buf; ++#ifdef HAVE_STRERROR_L + int errno_save = errno; + locale_t loc = newlocale(LC_MESSAGES_MASK, "", (locale_t)0); +- const char *buf; + + if (loc == (locale_t)0) { + if (errno == ENOENT) +@@ -140,6 +143,9 @@ const char *nl_strerror_l(int err) + } + + errno = errno_save; ++#else ++ buf = strerror(err); ++#endif + return buf; + } + /** @endcond */ -- cgit v1.2.3