This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: <signal.h> broken with _POSIX_SOURCE=1 defined
- To: Zack Weinberg <zack@rabi.columbia.edu>
- Subject: Re: <signal.h> broken with _POSIX_SOURCE=1 defined
- From: Philip Blundell <pb@nexus.co.uk>
- Date: Tue, 03 Nov 1998 15:00:53 +0100
- cc: libc-hacker@cygnus.com
>net/if_packet.h includes linux/if_packet.h which defines those
>structures. I don't know why the compiler didn't say where the
>previous definition was.
Thinking about this one again, I've now remembered some of the history. In
fact what we should probably do is make <net/if_packet.h> just define:
struct sockaddr_pkt
{
unsigned short spkt_family;
unsigned char spkt_device[14];
unsigned short spkt_protocol;
};
and not include anything else. That way programs that were written for the
Linux 2.0 interface and do socket(AF_INET, SOCK_PACKET, 0) can continue to use
it and work, and new software can use the AF_PACKET interface in <netpacket/
packet.h> instead.
p.