From 5c2a7ae329e21946d1f4441bf71ed17b29c28149 Mon Sep 17 00:00:00 2001 From: christos Date: Thu, 29 Oct 2009 01:16:51 +0000 Subject: [PATCH] take care of libc. --- external/bsd/byacc/dist/skeleton.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/external/bsd/byacc/dist/skeleton.c b/external/bsd/byacc/dist/skeleton.c index 1baa3bcfff62..d7af51cd6efc 100644 --- a/external/bsd/byacc/dist/skeleton.c +++ b/external/bsd/byacc/dist/skeleton.c @@ -1,10 +1,10 @@ -/* $NetBSD: skeleton.c,v 1.2 2009/10/29 00:56:20 christos Exp $ */ +/* $NetBSD: skeleton.c,v 1.3 2009/10/29 01:16:51 christos Exp $ */ /* Id: skeleton.c,v 1.19 2008/12/24 14:52:28 tom Exp */ #include "defs.h" #include -__RCSID("$NetBSD: skeleton.c,v 1.2 2009/10/29 00:56:20 christos Exp $"); +__RCSID("$NetBSD: skeleton.c,v 1.3 2009/10/29 01:16:51 christos Exp $"); /* The definition of yysccsid in the banner should be replaced with */ /* a #pragma ident directive if the target C compiler supports */ @@ -24,6 +24,9 @@ const char * const banner[] = "static const char yysccsid[] = \"@(#)yaccpar 1.9 (Berkeley) 02/21/93\";", "#endif", "", + "#ifdef _LIBC", + "#include \"namespace.h\"", + "#endif", "#include ", "#include ", "",