Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys



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



Home | Main Index | Thread Index | Old Index