From 750a62195c0a5cae560acd300619eb1df163ace6 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Tue, 14 Jul 2015 20:51:37 +0000 Subject: 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 SVN-Revision: 46371 --- package/utils/admswconfig/patches/002-fix-musl.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/utils/admswconfig/patches/002-fix-musl.patch (limited to 'package/utils/admswconfig/patches/002-fix-musl.patch') 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; -- cgit v1.2.3