Fix OpenBSD build. Cannot do sizeof on a macro argument, compiler does not know what it is yet. (#5284)

This commit is contained in:
nevun 2016-07-04 15:06:51 +02:00 committed by radare
parent f4f26582c7
commit f41b706437

View File

@ -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