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> SVN-Revision: 46371
This commit is contained in:
parent
a5641a6444
commit
750a62195c
1 changed files with 11 additions and 0 deletions
11
package/utils/admswconfig/patches/002-fix-musl.patch
Normal file
11
package/utils/admswconfig/patches/002-fix-musl.patch
Normal file
|
@ -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;
|
Loading…
Reference in a new issue