0
0
mirror of https://github.com/openwrt/packages.git synced 2025-01-31 04:51:44 +00:00
packages/utils/macchanger/patches/0001-fix-build-with-musl.patch
Ilya Lipnitskiy 5d8d4fbbcb treewide: Run refresh on all packages
The crude loop I wrote to come up with this changeset:

  find -L package/feeds/packages/ -name patches | \
  sed 's/patches$/refresh/' | sort | xargs make

Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
2021-02-20 16:02:15 -08:00

12 lines
345 B
Diff

--- a/src/netinfo.c
+++ b/src/netinfo.c
@@ -113,7 +113,7 @@ mc_net_info_get_permanent_mac (const net
epa->size = IFHWADDRLEN;
memcpy(&req, &(net->dev), sizeof(struct ifreq));
- req.ifr_data = (caddr_t)epa;
+ req.ifr_data = (char *)epa;
if (ioctl(net->sock, SIOCETHTOOL, &req) < 0) {
perror ("[ERROR] Could not read permanent MAC");