From 478c32acd0c20197321854c0e6fda2747a706969 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Thu, 30 Sep 2010 12:28:32 +0200 Subject: [PATCH] More patches to build without certain features --- src/main/listen.c | 2 ++ src/main/radiusd.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/listen.c b/src/main/listen.c index b6e2b4d..1f40ead 100644 --- a/src/main/listen.c +++ b/src/main/listen.c @@ -884,6 +884,7 @@ static int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this) sock->my_ipaddr = ipaddr; sock->my_port = listen_port; +#ifdef WITH_PROXY if (check_config) { if (home_server_find(&sock->my_ipaddr, sock->my_port, sock->proto)) { char buffer[128]; @@ -896,6 +897,7 @@ static int common_socket_parse(CONF_SECTION *cs, rad_listen_t *this) return 0; /* don't do anything */ } +#endif /* * If we can bind to interfaces, do so, diff --git a/src/main/radiusd.c b/src/main/radiusd.c index 20ad58e..6815e43 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -406,7 +406,9 @@ int main(int argc, char *argv[]) * Process requests until HUP or exit. */ while ((rcode = radius_event_process()) == 0x80) { +#ifdef WITH_STATS radius_stats_init(1); +#endif hup_mainconfig(); } -- 2.1.4