commit 2fc66b38d8e3c7b884d8480f3bbfc2003c60f16a Author: Mariusz Zaborski Date: Tue Aug 8 23:18:15 2017 +0200 Fix building of devel/radare2. diff --git devel/radare2/files/patch-kinfo_file.c devel/radare2/files/patch-kinfo_file.c new file mode 100644 index 000000000000..6970f918bb0a --- /dev/null +++ devel/radare2/files/patch-kinfo_file.c @@ -0,0 +1,23 @@ +--- libr/debug/p/debug_native.c 2017-08-08 00:36:25.502447000 +0200 ++++ libr/debug/p/debug_native.c 2017-08-08 00:39:41.234685000 +0200 +@@ -1487,15 +1487,15 @@ + type = 's'; + if (kve->kf_sock_domain == AF_LOCAL) { + struct sockaddr_un *sun = +- (struct sockaddr_un *)&kve->kf_sa_local; ++ (struct sockaddr_un *)&kve->kf_un.kf_sock.kf_sa_local; + if (sun->sun_path[0] != 0) +- addr_to_string (&kve->kf_sa_local, path, sizeof(path)); ++ addr_to_string (&kve->kf_un.kf_sock.kf_sa_local, path, sizeof(path)); + else +- addr_to_string (&kve->kf_sa_peer, path, sizeof(path)); ++ addr_to_string (&kve->kf_un.kf_sock.kf_sa_peer, path, sizeof(path)); + } else { +- addr_to_string (&kve->kf_sa_local, path, sizeof(path)); ++ addr_to_string (&kve->kf_un.kf_sock.kf_sa_local, path, sizeof(path)); + strcat (path, " "); +- addr_to_string (&kve->kf_sa_peer, path + strlen (path), ++ addr_to_string (&kve->kf_un.kf_sock.kf_sa_peer, path + strlen (path), + sizeof (path)); + } + str = path;