|
25 | 25 | #include "conf.h"
|
26 | 26 | #include "privs.h"
|
27 | 27 |
|
28 |
| -#ifdef HAVE_SYS_UIO_H |
| 28 | +#if defined(HAVE_SYS_UIO_H) |
29 | 29 | # include <sys/uio.h>
|
30 | 30 | #endif /* HAVE_SYS_UIO_H */
|
31 | 31 |
|
@@ -147,13 +147,13 @@ static int read_sock(int sockfd, void *buf, size_t reqlen) {
|
147 | 147 | */
|
148 | 148 | if (xerrno == ECONNRESET ||
|
149 | 149 | xerrno == ECONNABORTED ||
|
150 |
| -#ifdef ETIMEDOUT |
| 150 | +#if defined(ETIMEDOUT) |
151 | 151 | xerrno == ETIMEDOUT ||
|
152 | 152 | #endif /* ETIMEDOUT */
|
153 |
| -#ifdef ENOTCONN |
| 153 | +#if defined(ENOTCONN) |
154 | 154 | xerrno == ENOTCONN ||
|
155 | 155 | #endif /* ENOTCONN */
|
156 |
| -#ifdef ESHUTDOWN |
| 156 | +#if defined(ESHUTDOWN) |
157 | 157 | xerrno == ESHUTDOWN ||
|
158 | 158 | #endif /* ESHUTDOWNN */
|
159 | 159 | xerrno == EPIPE) {
|
@@ -235,13 +235,13 @@ static int readv_sock(int sockfd, const struct iovec *iov, int count) {
|
235 | 235 | */
|
236 | 236 | if (xerrno == ECONNRESET ||
|
237 | 237 | xerrno == ECONNABORTED ||
|
238 |
| -#ifdef ETIMEDOUT |
| 238 | +#if defined(ETIMEDOUT) |
239 | 239 | xerrno == ETIMEDOUT ||
|
240 | 240 | #endif /* ETIMEDOUT */
|
241 |
| -#ifdef ENOTCONN |
| 241 | +#if defined(ENOTCONN) |
242 | 242 | xerrno == ENOTCONN ||
|
243 | 243 | #endif /* ENOTCONN */
|
244 |
| -#ifdef ESHUTDOWN |
| 244 | +#if defined(ESHUTDOWN) |
245 | 245 | xerrno == ESHUTDOWN ||
|
246 | 246 | #endif /* ESHUTDOWNN */
|
247 | 247 | xerrno == EPIPE) {
|
@@ -438,7 +438,7 @@ static int read_haproxy_v1(pool *p, conn_t *conn,
|
438 | 438 | if (strncmp(ptr, "TCP4 ", 5) == 0) {
|
439 | 439 | have_tcp4 = TRUE;
|
440 | 440 |
|
441 |
| -#ifdef PR_USE_IPV6 |
| 441 | +#if defined(PR_USE_IPV6) |
442 | 442 | } else if (strncmp(ptr, "TCP6 ", 5) == 0) {
|
443 | 443 | if (pr_netaddr_use_ipv6()) {
|
444 | 444 | have_tcp6 = TRUE;
|
@@ -543,7 +543,7 @@ static int read_haproxy_v1(pool *p, conn_t *conn,
|
543 | 543 | return -1;
|
544 | 544 | }
|
545 | 545 |
|
546 |
| -#ifdef PR_USE_IPV6 |
| 546 | +#if defined(PR_USE_IPV6) |
547 | 547 | } else {
|
548 | 548 | if (pr_netaddr_get_family(src_addr) != AF_INET6) {
|
549 | 549 | pr_log_debug(DEBUG8, MOD_PROXY_PROTOCOL_VERSION
|
@@ -1063,7 +1063,7 @@ static int read_haproxy_v2(pool *p, conn_t *conn,
|
1063 | 1063 | "of TLV data", (unsigned long) tlv_len);
|
1064 | 1064 | }
|
1065 | 1065 |
|
1066 |
| -#ifdef PR_USE_IPV6 |
| 1066 | +#if defined(PR_USE_IPV6) |
1067 | 1067 | ipv6[0].iov_base = (void *) &src_ipv6;
|
1068 | 1068 | ipv6[0].iov_len = sizeof(src_ipv6);
|
1069 | 1069 | ipv6[1].iov_base = (void *) &dst_ipv6;
|
@@ -1530,7 +1530,7 @@ static int proxy_protocol_sess_init(void) {
|
1530 | 1530 | server_rec *proxied_server = NULL;
|
1531 | 1531 |
|
1532 | 1532 | /* Add "mod_proxy_protocol.proxied_server_addr" session note. With, or
|
1533 |
| - * without, port? |
| 1533 | + * without, port? |
1534 | 1534 | */
|
1535 | 1535 |
|
1536 | 1536 | if (pr_netaddr_cmp(session.c->local_addr, proxied_dst_addr) != 0 ||
|
|
0 commit comments