From: Alan T. DeKok Date: Thu, 30 Sep 2010 10:28:32 +0000 (+0200) Subject: More patches to build without certain features X-Git-Tag: release_3_0_0_beta0~1215 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=freeradius.git;a=commitdiff_plain;h=478c32acd0c20197321854c0e6fda2747a706969 More patches to build without certain features --- 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(); }