diff --git a/tools/qfcc/source/qc-lex.l b/tools/qfcc/source/qc-lex.l index ffad057cd..3256cc51c 100644 --- a/tools/qfcc/source/qc-lex.l +++ b/tools/qfcc/source/qc-lex.l @@ -170,6 +170,12 @@ typedef enum { rua_num_term, } rua_term; +// for debian flex +#ifndef yystart +#define yystart() YY_START +#define yybuffer YY_BUFFER_STATE +#endif + #define YY_USER_ACTION \ update_loc (yylloc, yyleng); \ save_text (yylval, yytext, yyleng, yystart(), extra); \