summaryrefslogtreecommitdiff
path: root/x2p
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-10-04 18:45:37 +0000
committerSteve Peters <steve@fisharerojo.org>2006-10-04 18:45:37 +0000
commit6d9c9890b6305b20fe39f3b418a5330f9fb32465 (patch)
tree39ac6e45ce6940d6fb640067e8d8fa1eb9ee1451 /x2p
parentdab8accc950a57180c2a6414eeb663fee64b5567 (diff)
downloadperl-6d9c9890b6305b20fe39f3b418a5330f9fb32465.tar.gz
Fixes to compile Perl with g++ and DEBUGGING.
p4raw-id: //depot/perl@28934
Diffstat (limited to 'x2p')
-rw-r--r--x2p/a2p.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/x2p/a2p.c b/x2p/a2p.c
index 1098b1e686..9d1d1725cb 100644
--- a/x2p/a2p.c
+++ b/x2p/a2p.c
@@ -2179,13 +2179,17 @@ int yyparse (void);
#define YYREJECT goto yyabort
#define YYACCEPT goto yyaccept
#define YYERROR goto yyerrlab
+
+#if YYDEBUG
+EXTERN_C char *getenv(const char *);
+#endif
+
int
yyparse(void)
{
register int yym, yyn, yystate;
#if YYDEBUG
register char *yys;
- extern char *getenv();
if ((yys = getenv("YYDEBUG")))
{