blob: 825cc97a7c52777aec9b9c29267ed8c412dc2a68 (
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
@@ -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)
|