mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-13 18:32:56 +00:00
Fix OpenBSD build. Cannot do sizeof on a macro argument, compiler does not know what it is yet. (#5284)
This commit is contained in:
parent
f4f26582c7
commit
f41b706437
@ -510,7 +510,7 @@ static RList *r_debug_native_pids (int pid) {
|
||||
#ifdef __OpenBSD__
|
||||
# define KVM_OPEN_FLAG KVM_NO_FILES
|
||||
# define KVM_GETPROCS(kd, opt, arg, cntptr) \
|
||||
kvm_getprocs (kd, opt, arg, sizeof(*ld), cntptr)
|
||||
kvm_getprocs (kd, opt, arg, sizeof(struct kinfo_proc), cntptr)
|
||||
# define KP_COMM(x) (x)->p_comm
|
||||
# define KP_PID(x) (x)->p_pid
|
||||
# define KP_PPID(x) (x)->p_ppid
|
||||
|
Loading…
x
Reference in New Issue
Block a user