public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: Jeff Dike <jdike@addtoit.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: uml fails to compile due to missing offsetof
Date: Sun, 19 Nov 2006 16:58:47 +0100 (MET)	[thread overview]
Message-ID: <20061119155847.GA6890@aepfle.de> (raw)
In-Reply-To: <20061119142507.GA3284@ccure.user-mode-linux.org>

On Sun, Nov 19, Jeff Dike wrote:

> On Sun, Nov 19, 2006 at 01:00:01PM +0100, Olaf Hering wrote:
> > 
> > I fail to see how arch/um/sys-i386/user-offsets.c can compile since
> > offsetof() was declared __KERNEL__ only in include/linux/stddef.h.
> > Does it work for anyone else? 
> 
> It obviously works for me.  offsetof is very standard C.  I'd venture
> to say that a system which can't find it has a broken gcc installation.

How do you get _STDDEF_H defined in
/usr/lib/gcc/<target>/<vers>/include/stddef.h ?
For me _STDDEF_H remains undefined, and /usr/include/linux/stddef.h has
offsetof inside __KERNEL__.

  reply	other threads:[~2006-11-19 15:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-19 12:00 uml fails to compile due to missing offsetof Olaf Hering
2006-11-19 14:25 ` Jeff Dike
2006-11-19 15:58   ` Olaf Hering [this message]
2006-11-19 19:35     ` Jeff Dike
2006-11-19 17:08 ` Roland Dreier
2006-11-19 17:20   ` Olaf Hering
2006-11-19 19:38   ` Jeff Dike

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=20061119155847.GA6890@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=jdike@addtoit.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox