[BUG] build failed on CONFIG_HAP_LINUX_TPROXY without CONFIG_HAP_CTTPROXY
authorWilly Tarreau <w@1wt.eu>
Mon, 14 Jan 2008 15:36:15 +0000 (16:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 Jan 2008 15:36:15 +0000 (16:36 +0100)
changed #ifdef

include/types/proxy.h
include/types/server.h

index 5d397d4..e0dff09 100644 (file)
@@ -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;
index 73ef022..730ed60 100644 (file)
@@ -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