Subject: Re: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: source-changes
Date: 05/04/2007 15:35:27
On Fri, May 04, 2007 at 12:00:34AM +0000, Tom Spindler wrote:
> As noted on current-users, this inline code breaks ipf on 64-bit architectures,
> due to src/sys/dist/ipf/netinet/ip_fil.h:
> #define      offsetof(t,m)   (int)((&((t *)0L)->m))
> 
> As also pointed out on current-users, either #include'ing <stddef.h>,
> fixing the #define, or making the sockaddr_iso_init1 sub (as defined
> in sys/netiso/iso.h) non-inlined would all probably suffice to make
> things work again.

The define should be replaced with an include of sys/systm.h. It is
incorrect anyway.

No include of stddef.h in the kernel -- it is a userland header.

Joerg