struct iphdr in netinet/ip.h
Corinna Vinschen
corinna-cygwin@cygwin.com
Fri Oct 17 10:53:00 GMT 2008
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' to incomplete type
> 'struct iphdr'
> test.c:153: error: invalid application of 'sizeof' to incomplete type
> 'struct iphdr'
>
> My investigation show me that cygwin not have iphdr difinitions in netinet/ip.h
> like Linux. I use cygwin 1.5.25(0.156/4/2), so maybe someone in this
> list can explain to me how to workaround this.
Cygwin has the BSD defintion struct ip instead. Use that or define
struct iphdr along the lines of struct ip yourself.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list