Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Oct 2001 08:46:42 -0700
From:      "David O'Brien" <obrien@FreeBSD.ORG>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        Mark Santcroos <marks@ripe.net>, freebsd-current@FreeBSD.ORG
Subject:   Re: commit to ansi.h
Message-ID:  <20011018084642.B19257@dragon.nuxi.com>
In-Reply-To: <20011018133729.A7667@sunbay.com>; from ru@FreeBSD.ORG on Thu, Oct 18, 2001 at 01:37:29PM %2B0300
References:  <20011018105311.D508@laptop.6bone.nl> <20011018133729.A7667@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 18, 2001 at 01:37:29PM +0300, Ruslan Ermilov wrote:
> > >From sys/i386/include/ansi.h:
> > 
> > (1) #if defined __GNUC__
> > (2) #if (__GNUC__ > 2 || __GNUC__ == 2 && __GNUC_MINOR__ > 95)
> > (3) #define _BSD_VA_LIST_   __builtin_va_list       /* internally known to gcc */
> > (4) #endif
> > (5) typedef _BSD_VA_LIST_ __gnuc_va_list;           /* compatibility w/GNU headers*/
> > (6) #else
> > (7) #define _BSD_VA_LIST_   char *                  /* va_list */
> > (8) #endif /*__GNUC__*/
> > 
> > On my system, (1) is TRUE, (2) is FALSE, so in (5) _BSD_VA_LIST_ is
> > undefined. (which breaks building a kernel, and probably more)
> > 
> > Placing a (7) before (5) solves the problem. 
> > 
> _BSD_VA_LIST_ is needed for non-GCC compilers as well.  Please
> see attached for the correct patch.

Uh??  It *is* defined for non-GCC compilers -- in line (7) above.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011018084642.B19257>