diff --git a/pxyconn.c b/pxyconn.c index f4b08df..ef38c5e 100644 --- a/pxyconn.c +++ b/pxyconn.c @@ -938,7 +938,7 @@ pxy_try_remove_sslproxy_header(pxy_conn_child_ctx_t *ctx, unsigned char *packet, } } -#ifdef __APPLE__ +#if defined(__FreeBSD__) || defined(__APPLE__) #define getdtablecount() 0 /* diff --git a/pxyconn.h b/pxyconn.h index 12b3a8f..fc162e7 100644 --- a/pxyconn.h +++ b/pxyconn.h @@ -30,6 +30,10 @@ #ifndef PXYCONN_H #define PXYCONN_H +#if defined(__FreeBSD__) || defined(__DragonFly__) +#include +#endif + #include "proxy.h" #include "opts.h" #include "attrib.h"