summaryrefslogtreecommitdiff
path: root/src/grammar.y
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-02 17:17:30 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2002-04-02 17:17:30 +0000
commite70b98252a2679196f90f6376462146c31ff0487 (patch)
treee43bf5f76d9f3e80fa321c62f1f005f39ae718fe /src/grammar.y
parentdaf90db11595645c964eef7577c6bfda71e592d6 (diff)
downloadtinyproxy-e70b98252a2679196f90f6376462146c31ff0487.tar.gz
tinyproxy-e70b98252a2679196f90f6376462146c31ff0487.zip
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.
Diffstat (limited to 'src/grammar.y')
-rw-r--r--src/grammar.y11
1 files changed, 9 insertions, 2 deletions
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