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.
This commit is contained in:
Robert James Kaes 2002-04-02 17:17:30 +00:00
parent daf90db115
commit e70b98252a

View File

@ -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