aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/admswconfig
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2015-07-14 20:51:37 +0000
committerHauke Mehrtens <hauke@openwrt.org>2015-07-14 20:51:37 +0000
commitba68a0848679a72ad946600d049df0a0184eab37 (patch)
treee3ac6b2598f35a529ac243a7a7563d29407c5611 /package/utils/admswconfig
parent14ae11c7056d5f9095cf198be85529d1151f8bfe (diff)
downloadmaster-187ad058-ba68a0848679a72ad946600d049df0a0184eab37.tar.gz
master-187ad058-ba68a0848679a72ad946600d049df0a0184eab37.tar.bz2
master-187ad058-ba68a0848679a72ad946600d049df0a0184eab37.zip
admswconfig: fix compile with musl
caddr_t is not defined everywhere any more, cast it the the real pointer type of ifr_data. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46371 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/admswconfig')
-rw-r--r--package/utils/admswconfig/patches/002-fix-musl.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/utils/admswconfig/patches/002-fix-musl.patch b/package/utils/admswconfig/patches/002-fix-musl.patch
new file mode 100644
index 0000000000..3dad1f99d5
--- /dev/null
+++ b/package/utils/admswconfig/patches/002-fix-musl.patch
@@ -0,0 +1,11 @@
+--- a/admswconfig.c
++++ b/admswconfig.c
+@@ -68,7 +68,7 @@ int main(int argc, char **argv)
+ return 1;
+ }
+ strcpy(ifr.ifr_name, device);
+- ifr.ifr_data = (caddr_t)&info;
++ ifr.ifr_data = (void *)&info;
+ if (ioctl(fd, SIOCGADMINFO, &ifr) < 0) {
+ perror("SIOCGADMINFO");
+ return 1;