mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
macchanger: fix build with musl
According to netdevice(7) ifr_data is a "char *", not caddr_t. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
Index: macchanger-1.7.0/src/netinfo.c
|
||||
===================================================================
|
||||
--- macchanger-1.7.0.orig/src/netinfo.c
|
||||
+++ macchanger-1.7.0/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");
|
||||
Reference in New Issue
Block a user