blob: 00c93258625e190e83b6fceb218fd3e4fc9af03f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
@@ -106,7 +106,6 @@
nm_assert (buf);
nm_assert (buf_size > 0);
-#if (_POSIX_C_SOURCE >= 200112L) && ! _GNU_SOURCE
/* XSI-compliant */
{
int errno_saved = errno;
@@ -117,10 +116,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)
|