lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit 246802512ede50f4813f7e10327fe68e3f955cf2
parent d4afd14ff1a7bfd2cf5e91e9a374497b1a5ca265
Author: Nicolas Thill <nico@openwrt.org>
Date:   Tue, 23 Jun 2015 01:20:02 +0200

Merge branch 'paulfertser-macchanger-musl-fix'

Diffstat:
Mutils/macchanger/Makefile | 2+-
Autils/macchanger/patches/0001-fix-build-with-musl.patch | 13+++++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/utils/macchanger/Makefile b/utils/macchanger/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=macchanger PKG_VERSION:=1.7.0 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/alobbs/macchanger/releases/download/$(PKG_VERSION)/ diff --git a/utils/macchanger/patches/0001-fix-build-with-musl.patch b/utils/macchanger/patches/0001-fix-build-with-musl.patch @@ -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");