summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2011-10-10 01:01:58 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2011-10-10 01:41:08 +0200
commit9b7fdfc84a516ede415cd1941e5ff1d6312e83ff (patch)
treee0795bd5512094ce7482367657aeb2d274228242 /conf
parent1cb97af419ee5bff45049f4d3a85acadbb5b1cb9 (diff)
Fixes for include.
Diffstat (limited to 'conf')
-rw-r--r--conf/cf-lex.l1
-rw-r--r--conf/conf.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/conf/cf-lex.l b/conf/cf-lex.l
index 79dbab29..02ba4b39 100644
--- a/conf/cf-lex.l
+++ b/conf/cf-lex.l
@@ -75,6 +75,7 @@ linpool *cfg_mem;
int (*cf_read_hook)(byte *buf, unsigned int max, int fd);
int (*cf_open_hook)(char *filename);
+struct include_file_stack *ifs;
#define YY_INPUT(buf,result,max) result = cf_read_hook(buf, max, ifs->conf_fd);
#define YY_NO_UNPUT
diff --git a/conf/conf.h b/conf/conf.h
index df772681..142c6ade 100644
--- a/conf/conf.h
+++ b/conf/conf.h
@@ -120,7 +120,7 @@ struct include_file_stack {
struct include_file_stack *next;
};
-struct include_file_stack *ifs;
+extern struct include_file_stack *ifs;
int cf_lex(void);