aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/admswconfig/patches/002-fix-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/utils/admswconfig/patches/002-fix-musl.patch')
-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;