Re: C++ interface build on FreeBSD 4.2 broken?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: C++ interface build on FreeBSD 4.2 broken?
Date: 2001-01-20 18:14:23
Message-ID: Pine.LNX.4.30.0101201911260.1033-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> >> ../../../src/include/c.h:997: conflicting types for `int sys_nerr'
> >> /usr/include/stdio.h:224: previous declaration as `const int sys_nerr'
>
> > C++ apparently doesn't allow this, but C does. So you have to put #ifndef
> > __cplusplus at the appropriate place in c.h.
>
> Er, what will you ifdef exactly,

+ #ifdef __cplusplus
#ifdef HAVE_SYS_NERR
extern int sys_nerr;
#endif
+ #endif

> and what are the odds that it will fail on some other platform?

I don't see how it would fail. At least it won't add more possible
failure cases.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-01-20 18:14:51 Re: C++ interface build on FreeBSD 4.2 broken?
Previous Message Tom Lane 2001-01-20 16:36:59 Re: C++ interface build on FreeBSD 4.2 broken?