mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
macchanger: add alpine patch to fix musl.
This commit is contained in:
parent
6315e5a0b5
commit
235a2b12fb
2 changed files with 14 additions and 1 deletions
13
srcpkgs/macchanger/patches/fix-caddr_t.patch
Normal file
13
srcpkgs/macchanger/patches/fix-caddr_t.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
https://github.com/alobbs/macchanger/issues/14
|
||||||
|
|
||||||
|
--- ./src/netinfo.c.orig
|
||||||
|
+++ ./src/netinfo.c
|
||||||
|
@@ -113,7 +113,7 @@
|
||||||
|
epa->size = IFHWADDRLEN;
|
||||||
|
|
||||||
|
memcpy(&req, &(net->dev), sizeof(struct ifreq));
|
||||||
|
- req.ifr_data = (caddr_t)epa;
|
||||||
|
+ req.ifr_data = (void *)epa;
|
||||||
|
|
||||||
|
if (ioctl(net->sock, SIOCETHTOOL, &req) < 0) {
|
||||||
|
perror ("[ERROR] Could not read permanent MAC");
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'macchanger'
|
# Template file for 'macchanger'
|
||||||
pkgname=macchanger
|
pkgname=macchanger
|
||||||
version=1.7.0
|
version=1.7.0
|
||||||
revision=1
|
revision=2
|
||||||
build_pie=yes
|
build_pie=yes
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_script="./autogen.sh"
|
configure_script="./autogen.sh"
|
||||||
|
|
Loading…
Add table
Reference in a new issue