Re: struct iphdr in netinet/ip.h

2008-10-24 Thread bjoe
Thank for your quick answer Corinna, the BSD struct ip definition work fine on me. I realize cygwin development team have good reason not to add struct iphdr definition so I use your first solutions. regards, On Fri, Oct 17, 2008 at 12:52:28PM +0200, Corinna Vinschen wrote: > On Oct 17 16:56, bj

Re: struct iphdr in netinet/ip.h

2008-10-17 Thread Corinna Vinschen
On Oct 17 16:56, bjoe wrote: > Hi all, > I am sorry for this newbie question > I get this error messages when try to compile program in cygwin, but > this program compiled successfully in Linux. > > $ gcc-4 test.c > test.c: In function 'main': > test.c:152: error: invalid application of 'sizeof' t

struct iphdr in netinet/ip.h

2008-10-17 Thread bjoe
Hi all, I am sorry for this newbie question I get this error messages when try to compile program in cygwin, but this program compiled successfully in Linux. $ gcc-4 test.c test.c: In function 'main': test.c:152: error: invalid application of 'sizeof' to incomplete type 'struct iphdr' test.c:153: