]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[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 5d397d403a213ffdc9b06f26533ae1f5e820eef3..e0dff097bb4fa988928e7d46a18a81ed8f5f0f62 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 73ef022f84cf266033b6dede360caf49901ee46f..730ed60a73c72041549bffd02b48d727c67d3298 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