File python-sip-define-yylex-yyerror.patch of Package python-sip
diff -Naru sip-4.16.9_orig/sipgen/parser.c sip-4.16.9/sipgen/parser.c --- sip-4.16.9_orig/sipgen/parser.c 2015-07-17 20:41:28.000000000 +0900 +++ sip-4.16.9/sipgen/parser.c 2024-10-17 11:38:46.347548527 +0900 @@ -2195,6 +2195,9 @@ /* YYLEX -- calling `yylex' with the right arguments. */ +int yylex(void); +void yyerror(char *s); + #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else