summaryrefslogtreecommitdiff
path: root/user/networkmanager/errno.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/networkmanager/errno.patch')
-rw-r--r--user/networkmanager/errno.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/user/networkmanager/errno.patch b/user/networkmanager/errno.patch
new file mode 100644
index 000000000..825cc97a7
--- /dev/null
+++ b/user/networkmanager/errno.patch
@@ -0,0 +1,21 @@
+--- NetworkManager-1.18.1/shared/nm-glib-aux/nm-errno.c.old 2019-04-19 09:31:51.000000000 +0000
++++ NetworkManager-1.18.1/shared/nm-glib-aux/nm-errno.c 2019-05-10 06:01:00.812741059 +0000
+@@ -121,7 +121,6 @@
+ nm_assert (buf);
+ nm_assert (buf_size > 0);
+
+-#if (_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE
+ /* XSI-compliant */
+ {
+ int errno_saved = errno;
+@@ -132,10 +131,6 @@
+ }
+ buf2 = buf;
+ }
+-#else
+- /* GNU-specific */
+- buf2 = strerror_r (errsv, buf, buf_size);
+-#endif
+
+ /* like g_strerror(), ensure that the error message is UTF-8. */
+ if ( !g_get_charset (NULL)