[K42-discussion] [PATCH] Added another ifdef->undef for offsetof which gets
Michal Ostrowski
mostrows at watson.ibm.com
Tue Oct 3 09:41:48 EST 2006
I think this kind of fix belongs in headers. There should be a very
basic header file that defines compiler-specific stuff such as this.
Somethin along the lines of how things like uval types are defined.
This kind of #ifdef should go there and be system-wide.
--
Michal Ostrowski <mostrows at watson.ibm.com>
On Mon, 2006-10-02 at 17:11 -0600, Donour Sizemore wrote:
> Signed-off-by: Donour Sizemore <donour at milhouse.localdomain>
> ---
> os/kernel/linux/LinuxBlockDev.C | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/os/kernel/linux/LinuxBlockDev.C
> b/os/kernel/linux/LinuxBlockDev.C
> index 70f58e3..423960d 100644
> --- a/os/kernel/linux/LinuxBlockDev.C
> +++ b/os/kernel/linux/LinuxBlockDev.C
> @@ -39,6 +39,10 @@ #include <asm/current.h>
> #undef __KERNEL__ //We don't really use anything lk specific here
>
> #include <cobj/CObjRootSingleRep.H>
> +
> +#ifdef offsetof
> +#undef offsetof
> +#endif
> #include "LinuxBlockDev.H"
>
> #include <io/PAPageServer.H>
More information about the K42-discussion
mailing list