On 19 Aug 1999 [EMAIL PROTECTED] wrote:
> try: gcc -E /usr/include/linux/if.h | grep sockaddr | head -n 1
>
> you should get
>
> struct sockaddr {
Sorry for taking this long - didn't have much time to look into anything
lately.
The way it looks, it's not a bug, it's a feature. Preprocessing got more
intelligent.
linux/if.h gets struct sockaddr stuff from linux/socket.h, which does
something about struct sockaddr only
#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
which is not the case.
Any application including <linux/if.h> is broken anyway (portability);
unless it's VERY system-specific stuff, it should include <net/if.h>
instead.
LLaP
bero