diff --git a/usr.bin/yacc/skeleton.c b/usr.bin/yacc/skeleton.c index c3b02b0ffe02..aba2abd45bac 100644 --- a/usr.bin/yacc/skeleton.c +++ b/usr.bin/yacc/skeleton.c @@ -67,7 +67,11 @@ char *banner[] = "#define yyclearin (yychar=(YYEMPTY))", "#define yyerrok (yyerrflag=0)", "#define YYRECOVERING() (yyerrflag!=0)", + "#if defined(__cplusplus) || __STDC__", + "static int yygrowstack(void);", + "#else", "static int yygrowstack();", + "#endif", 0 };