diff --git a/binr/rules.mk b/binr/rules.mk index 82a6748c7f..b0edfee39d 100644 --- a/binr/rules.mk +++ b/binr/rules.mk @@ -13,7 +13,9 @@ LDFLAGS+=-lm else ifneq (${OSTYPE},linux) LDFLAGS+=-lpthread +ifeq (${OSTYPE},freebsd) LDFLAGS+=-ldl +endif LDFLAGS+=-lm endif endif diff --git a/libr/include/r_io.h b/libr/include/r_io.h index 7fc205d05e..b0a2f9a405 100644 --- a/libr/include/r_io.h +++ b/libr/include/r_io.h @@ -52,6 +52,10 @@ typedef void * r_ptrace_data_t; #elif __APPLE__ typedef int r_ptrace_request_t; typedef int r_ptrace_data_t; +#elif __OpenBSD__ +typedef int r_ptrace_request_t; +typedef int r_ptrace_data_t; +#define R_PTRACE_NODATA 0 #else typedef int r_ptrace_request_t; typedef void *r_ptrace_data_t;