fix compile error on musl

name '__in6_u.__u6_addr32' is specific to glibc

use 's6_addr32' macro instead
This commit is contained in:
Matija Skala
2017-10-30 10:15:31 +01:00
parent f630daaae9
commit 5a10b4d6bf
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -114,7 +114,7 @@ int config_parse_ip_address_access(
a->family = AF_INET6;
a->address.in6 = (struct in6_addr) {
.__in6_u.__u6_addr32[0] = htobe32(0xfe800000)
.s6_addr32[0] = htobe32(0xfe800000)
};
a->prefixlen = 64;
@@ -133,7 +133,7 @@ int config_parse_ip_address_access(
a->family = AF_INET6;
a->address.in6 = (struct in6_addr) {
.__in6_u.__u6_addr32[0] = htobe32(0xff000000)
.s6_addr32[0] = htobe32(0xff000000)
};
a->prefixlen = 8;
+2 -2
View File
@@ -511,7 +511,7 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen
return bus_log_create_error(r);
prefix.in6 = (struct in6_addr) {
.__in6_u.__u6_addr32[0] = htobe32(0xfe800000)
.s6_addr32[0] = htobe32(0xfe800000)
};
r = bus_append_ip_address_access(m, AF_INET6, &prefix, 64);
if (r < 0)
@@ -527,7 +527,7 @@ int bus_append_unit_property_assignment(sd_bus_message *m, const char *assignmen
return bus_log_create_error(r);
prefix.in6 = (struct in6_addr) {
.__in6_u.__u6_addr32[0] = htobe32(0xff000000)
.s6_addr32[0] = htobe32(0xff000000)
};
r = bus_append_ip_address_access(m, AF_INET6, &prefix, 8);
if (r < 0)