From 4864c352098d872387473165ea84eb067f3809c2 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Mon, 14 Jan 2008 16:36:15 +0100 Subject: [PATCH] [BUG] build failed on CONFIG_HAP_LINUX_TPROXY without CONFIG_HAP_CTTPROXY changed #ifdef --- include/types/proxy.h | 2 +- include/types/server.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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