From: Richard Knutsson <ricknu-0@student.ltu.se>
To: Arjan van de Ven <arjan@infradead.org>
Cc: ebuddington@wesleyan.edu, linux-kernel@vger.kernel.org
Subject: Re: 2.6.18-mm1: true/false enum in linux/stddef.h fails glibc-2.4 compile
Date: Thu, 05 Oct 2006 19:00:31 +0200 [thread overview]
Message-ID: <45253A2F.4040400@student.ltu.se> (raw)
In-Reply-To: <1159977424.3000.23.camel@laptopd505.fenrus.org>
Arjan van de Ven wrote:
> On Wed, 2006-10-04 at 11:51 -0400, Eric Buddington wrote:
>
>> There is an enum contained in some recent -mm versions of
>> linux/stddef.h which seems to be horking my glibc-2.4 compile:
>>
>> enum {
>> false = 0,
>> true = 1
>> };
>>
>> One way or another (I can't find where), 'true' and 'false' are
>> getting defined to 1 and 0, turning the above into enum { 0=0, 1=1 },
>> which though undeniable is not compilable.
>>
>
> I think you're making the mistake of using kernel headers for
> userspace...... rather than the cleaned up headers.
>
I think so too. glibc-2.4 #includes stdbool.h which have false/true
defined as 0/1.
Richard Knutsson
prev parent reply other threads:[~2006-10-05 16:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-04 15:51 2.6.18-mm1: true/false enum in linux/stddef.h fails glibc-2.4 compile Eric Buddington
2006-10-04 15:57 ` Arjan van de Ven
2006-10-05 17:00 ` Richard Knutsson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45253A2F.4040400@student.ltu.se \
--to=ricknu-0@student.ltu.se \
--cc=arjan@infradead.org \
--cc=ebuddington@wesleyan.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.