From e70b98252a2679196f90f6376462146c31ff0487 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Tue, 2 Apr 2002 17:17:30 +0000 Subject: Added define check for XTINYPROXY_ENABLE. Although, I'm not sure if this is the correct way to do this, since grammar.c probably doesn't get recomplied even if config.h is changed. Must look into this more. --- src/grammar.y | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/grammar.y b/src/grammar.y index fb2b4cc..eabb5e5 100644 --- a/src/grammar.y +++ b/src/grammar.y @@ -1,4 +1,4 @@ -/* $Id: grammar.y,v 1.6 2001-11-25 02:20:54 rjkaes Exp $ +/* $Id: grammar.y,v 1.7 2002-04-02 17:17:30 rjkaes Exp $ * * This is the grammar for tinyproxy's configuration file. It needs to be * in sync with scanner.l. If you know more about yacc and lex than I do @@ -115,7 +115,14 @@ statement log_message(LOG_WARNING, "Filter support was not compiled in."); #endif } - | KW_XTINYPROXY network_address { config.my_domain = $2; } + | KW_XTINYPROXY network_address + { +#ifdef XTINYPROXY_ENABLE + config.my_domain = $2; +#else + log_message(LOG_WARNING, "X-Tinyproxy header support was not compiled in."); +#endif + } | KW_TUNNEL unique_address ':' NUMBER { #ifdef TUNNEL_SUPPORT -- cgit v1.2.3