mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
This reverts commit e80c863bee.
This commit is contained in:
22
dev-util/radare2/patches/radare2-4.5.1.patchset
Normal file
22
dev-util/radare2/patches/radare2-4.5.1.patchset
Normal file
@@ -0,0 +1,22 @@
|
||||
From 6f963691d4cb1ac0458212160ceebda35944e7c3 Mon Sep 17 00:00:00 2001
|
||||
From: devnexen <devnexen@gmail.com>
|
||||
Date: Mon, 23 Nov 2020 09:28:36 +0000
|
||||
Subject: Merge upstream patch for using proper team_id/pid_t
|
||||
|
||||
|
||||
diff --git a/libr/util/sys.c b/libr/util/sys.c
|
||||
index f2dc348..6dbdc67 100644
|
||||
--- a/libr/util/sys.c
|
||||
+++ b/libr/util/sys.c
|
||||
@@ -1212,7 +1212,7 @@ R_API char *r_sys_pid_to_path(int pid) {
|
||||
int32_t group = 0;
|
||||
image_info ii;
|
||||
|
||||
- while (get_next_image_info (0, &group, &ii) == B_OK) {
|
||||
+ while (get_next_image_info ((team_id)pid, &group, &ii) == B_OK) {
|
||||
if (ii.type == B_APP_IMAGE) {
|
||||
break;
|
||||
}
|
||||
--
|
||||
2.28.0
|
||||
|
||||
Reference in New Issue
Block a user