aboutsummaryrefslogtreecommitdiff
path: root/src/lib/daemon_ip_limit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/daemon_ip_limit.c')
-rw-r--r--src/lib/daemon_ip_limit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/daemon_ip_limit.c b/src/lib/daemon_ip_limit.c
index e8af56d8..91fc06ea 100644
--- a/src/lib/daemon_ip_limit.c
+++ b/src/lib/daemon_ip_limit.c
@@ -24,7 +24,7 @@
24 */ 24 */
25#include "internal.h" 25#include "internal.h"
26#include "daemon_ip_limit.h" 26#include "daemon_ip_limit.h"
27#if HAVE_SEARCH_H 27#ifdef HAVE_SEARCH_H
28#include <search.h> 28#include <search.h>
29#else 29#else
30#include "tsearch.h" 30#include "tsearch.h"
@@ -50,7 +50,7 @@ struct MHD_IPCount
50 * IPv4 address. 50 * IPv4 address.
51 */ 51 */
52 struct in_addr ipv4; 52 struct in_addr ipv4;
53#if HAVE_INET6 53#ifdef HAVE_INET6
54 /** 54 /**
55 * IPv6 address. 55 * IPv6 address.
56 */ 56 */
@@ -154,7 +154,7 @@ MHD_ip_addr_to_key (const struct sockaddr *addr,
154 return MHD_YES; 154 return MHD_YES;
155 } 155 }
156 156
157#if HAVE_INET6 157#ifdef HAVE_INET6
158 /* IPv6 addresses */ 158 /* IPv6 addresses */
159 if (sizeof (struct sockaddr_in6) == addrlen) 159 if (sizeof (struct sockaddr_in6) == addrlen)
160 { 160 {