gentoo-ebuilds/net-misc/wol/files/wol-0.7.1-linux-headers.patch
Sam James a630c6eaaf
net-misc/wol: additional build fixes
- Try harder to convince it we've got a decent malloc & realloc
  (if upstream were alive, it'd be worth fixing up the autoconf here, but...)

- Fix build with newer linux-headers(?)

Closes: https://bugs.gentoo.org/874420
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
2022-10-29 15:06:32 +02:00

11 lines
303 B
Diff

--- a/src/magic.c
+++ b/src/magic.c
@@ -142,7 +142,7 @@ magic_assemble (struct magic *magic_buf, const char *mac_str,
}
for (j = 0; j < MAC_LEN; ++j)
- m[j] = ea.ETHER_ADDR_OCTET[j];
+ m[j] = ea.ether_addr_octet[j];
}
/* accommodate the packet chunk's size to the packet type */