mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-06 16:21:50 +00:00
shared: fix _POSIX_C_SOURCE not being defined for nm-errno.c
This is the case with musl. Based-on-patch-by: Rasmus Thomsen <oss@cogitri.dev>
This commit is contained in:
parent
ba4142b328
commit
712516f2ac
|
@ -106,7 +106,7 @@ nm_strerror_native_r(int errsv, char *buf, gsize buf_size)
|
|||
nm_assert(buf);
|
||||
nm_assert(buf_size > 0);
|
||||
|
||||
#if (_POSIX_C_SOURCE >= 200112L) && !_GNU_SOURCE
|
||||
#if (!defined(__GLIBC__) && !defined(__UCLIBC__)) || ((_POSIX_C_SOURCE >= 200112L) && !_GNU_SOURCE)
|
||||
/* XSI-compliant */
|
||||
{
|
||||
int errno_saved = errno;
|
||||
|
|
Loading…
Reference in a new issue