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/command_lex.l | |
| parent | 01db90cd83edbcd2f806ece2c2d1620478f51c8f (diff) | |
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 'lib/command_lex.l')
| -rw-r--r-- | lib/command_lex.l | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/command_lex.l b/lib/command_lex.l index 0d6e6ee7e5..3b18b58a2e 100644 --- a/lib/command_lex.l +++ b/lib/command_lex.l @@ -22,6 +22,11 @@   * 02111-1307, USA.   */ +%top{ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif +}  %{  /* ignore flex generated code in static analyzer */  #ifndef __clang_analyzer__  | 
