diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-09 01:00:42 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-09-09 01:16:25 +0200 |
commit | 7b34167d7dac6e898c49c675cfc80ae68c64bc98 (patch) | |
tree | 235f3c3a32ef8c5a4601b32638ff42c0e86cbd6f /lib/defun_lex.l | |
parent | ospf6d: remove extra struct in ospf6_lsa_handler (diff) | |
download | frr-7b34167d7dac6e898c49c675cfc80ae68c64bc98.tar.xz frr-7b34167d7dac6e898c49c675cfc80ae68c64bc98.zip |
lib: early-include "config.h" in flex lexers
This is neccessary to get _FILE_OFFSET_BITS right.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to '')
-rw-r--r-- | lib/defun_lex.l | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/defun_lex.l b/lib/defun_lex.l index d901c26a2..6c0805a4f 100644 --- a/lib/defun_lex.l +++ b/lib/defun_lex.l @@ -1,4 +1,3 @@ -%{ /* * clippy (CLI preparator in python) C pseudo-lexer * Copyright (C) 2016-2017 David Lamparter for NetDEF, Inc. @@ -34,6 +33,12 @@ * code documentation in it. */ +%top{ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +} +%{ /* ignore harmless bugs in old versions of flex */ #pragma GCC diagnostic ignored "-Wsign-compare" #pragma GCC diagnostic ignored "-Wunused-value" |