diff --git a/src/chilli.c b/src/chilli.c index 0a7ba30b..8eed2e69 100644 --- a/src/chilli.c +++ b/src/chilli.c @@ -5756,8 +5756,10 @@ int chilli_acct_fromsub(struct app_conn_t *appconn, /* * Change to garden accounting. */ +#ifdef ENABLE_GARDENACCOUNTING if (_options.nousergardendata) is_garden = 1; +#endif #ifdef ENABLE_LEAKYBUCKET do_bw = 0; if (_options.debug) @@ -5883,8 +5885,10 @@ int chilli_acct_tosub(struct app_conn_t *appconn, /* * Change to garden accounting. */ +#ifdef ENABLE_GARDENACCOUNTING if (_options.nousergardendata) is_garden = 1; +#endif #ifdef ENABLE_LEAKYBUCKET do_bw = 0; #endif