Author: hauke Date: 2015-07-14 22:51:37 +0200 (Tue, 14 Jul 2015) New Revision: 46371
Added: trunk/package/utils/admswconfig/patches/002-fix-musl.patch Log: 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 <[email protected]> Added: trunk/package/utils/admswconfig/patches/002-fix-musl.patch =================================================================== --- trunk/package/utils/admswconfig/patches/002-fix-musl.patch (rev 0) +++ trunk/package/utils/admswconfig/patches/002-fix-musl.patch 2015-07-14 20:51:37 UTC (rev 46371) @@ -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; _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
