--- a2p.c.dist 2007-04-17 14:11:43.000000000 +0300 +++ a2p.c 2007-04-18 05:54:26.000000000 +0300 @@ -2185,7 +2185,9 @@ register int yym, yyn, yystate; #if YYDEBUG register char *yys; - extern char *getenv(); +#ifndef __cplusplus + extern char *getenv(const char *); +#endif if ((yys = getenv("YYDEBUG"))) { --- Makefile.SH.dist 2007-04-17 14:11:35.000000000 +0300 +++ Makefile.SH 2007-04-18 05:57:38.000000000 +0300 @@ -119,6 +119,10 @@ $(BYACC) a2p.y rm -f a2p.c sed -e 's/(yyn = yydefred\[yystate\])/((yyn = yydefred[yystate]))/' \ + -e '/^ extern char \*getenv();/ c\ +#ifndef __cpluscplus\ + extern char *getenv(const char *);\ +#endif' \ -e 's/(yys = getenv("YYDEBUG"))/((yys = getenv("YYDEBUG")))/' \ -e 's/^yyerrlab://' \ -e 's/^ goto yyerrlab;//' \Thread Next