This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: <signal.h> broken with _POSIX_SOURCE=1 defined


On Tue, 03 Nov 1998 14:07:46 +0100, Philip Blundell wrote:
>
>>In file included from t-standards/all-headers.c:93:
>>../sysdeps/unix/sysv/linux/netpacket/packet.h:24: redefinition of `struct soc
>k
>>addr_ll'
>>../sysdeps/unix/sysv/linux/netpacket/packet.h:50: redefinition of `struct pac
>k
>>et_mreq'
>
>I'm puzzled by this one.  Can you see how it happened?

#include <net/if_packet.h>
#include <netpacket/packet.h>

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.

zw


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]