termux-packages/packages/iproute2/IN6_IS_ADDR_UNSPECIFIED.patch

14 lines
310 B
Diff
Raw Normal View History

2021-11-21 16:54:57 +01:00
--- iproute2-5.15.0/lib/utils.c.orig
+++ iproute2-5.15.0/lib/utils.c
@@ -513,6 +513,10 @@
return 1;
}
+#undef IN6_IS_ADDR_UNSPECIFIED
+#define IN6_IS_ADDR_UNSPECIFIED(a) \
+ (a[0] == 0 && a[1] == 0 && a[2] == 0 && a[3] == 0)
+
static void set_address_type(inet_prefix *addr)
{
switch (addr->family) {