xbps_init: fix warning on glibc.

This commit is contained in:
Juan RP 2019-12-27 16:19:37 +01:00
parent 7f75fd840a
commit 2f51b4c0bc

View File

@ -107,7 +107,10 @@ xbps_init(struct xbps_handle *xhp)
if ((native_arch = getenv("XBPS_ARCH")) != NULL) {
xbps_strlcpy(xhp->native_arch, native_arch, sizeof (xhp->native_arch));
} else {
#if defined(__linux__) && !defined(__GLIBC__)
/* musl libc on linux */
char *s = NULL;
#endif
struct utsname un;
if (uname(&un) == -1)
return ENOTSUP;