diff --git a/include/types/proxy.h b/include/types/proxy.h index 5d397d403..e0dff097b 100644 --- a/include/types/proxy.h +++ b/include/types/proxy.h @@ -204,7 +204,7 @@ struct proxy { int conn_retries; /* maximum number of connect retries */ int cap; /* supported capabilities (PR_CAP_*) */ struct sockaddr_in source_addr; /* the address to which we want to bind for connect() */ -#ifdef CONFIG_HAP_CTTPROXY +#if defined(CONFIG_HAP_CTTPROXY) || defined(CONFIG_HAP_LINUX_TPROXY) struct sockaddr_in tproxy_addr; /* non-local address we want to bind to for connect() */ #endif struct proxy *next; diff --git a/include/types/server.h b/include/types/server.h index 73ef022f8..730ed60a7 100644 --- a/include/types/server.h +++ b/include/types/server.h @@ -85,7 +85,7 @@ struct server { struct sockaddr_in addr; /* the address to connect to */ struct sockaddr_in source_addr; /* the address to which we want to bind for connect() */ -#ifdef CONFIG_HAP_CTTPROXY +#if defined(CONFIG_HAP_CTTPROXY) || defined(CONFIG_HAP_LINUX_TPROXY) struct sockaddr_in tproxy_addr; /* non-local address we want to bind to for connect() */ #endif