diff options
-rw-r--r-- | source4/heimdal/lib/asn1/lex.c | 3 | ||||
-rw-r--r-- | source4/heimdal/lib/com_err/lex.c | 1 | ||||
-rwxr-xr-x | source4/script/lex_compile.sh | 4 |
3 files changed, 6 insertions, 2 deletions
diff --git a/source4/heimdal/lib/asn1/lex.c b/source4/heimdal/lib/asn1/lex.c index 37309ba0aa..70e893197d 100644 --- a/source4/heimdal/lib/asn1/lex.c +++ b/source4/heimdal/lib/asn1/lex.c @@ -1,3 +1,4 @@ +#include "config.h" #line 3 "lex.yy.c" @@ -1905,7 +1906,7 @@ static int yy_get_next_buffer (void) /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), - (yy_n_chars), num_to_read ); + (yy_n_chars), (size_t) num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } diff --git a/source4/heimdal/lib/com_err/lex.c b/source4/heimdal/lib/com_err/lex.c index d5d6b20a8d..4697d0a3fd 100644 --- a/source4/heimdal/lib/com_err/lex.c +++ b/source4/heimdal/lib/com_err/lex.c @@ -1,3 +1,4 @@ +#include "config.h" #line 3 "lex.yy.c" diff --git a/source4/script/lex_compile.sh b/source4/script/lex_compile.sh index f33a7f0fba..064bf89bea 100755 --- a/source4/script/lex_compile.sh +++ b/source4/script/lex_compile.sh @@ -19,7 +19,9 @@ fi TOP=`pwd` if cd $dir && $LEX $file; then if [ -r $base.yy.c ];then - sed '/^#/ s|$base.yy\.c|$DEST|' $base.yy.c > $base.c + # we must guarantee that config.h comes first + echo "#include \"config.h\"" > $base.c + sed '/^#/ s|$base.yy\.c|$DEST|' $base.yy.c >> $base.c rm -f $base.yy.c fi fi |