Re: Mac OS 10.4 (Tiger) compilation errors ( GCC v3.3 ) with X Code 2.0 tool
Re: Mac OS 10.4 (Tiger) compilation errors ( GCC v3.3 ) with X Code 2.0 tool
- Subject: Re: Mac OS 10.4 (Tiger) compilation errors ( GCC v3.3 ) with X Code 2.0 tool
- From: Andrew Gallatin <email@hidden>
- Date: Wed, 20 Jul 2005 10:01:51 -0400 (EDT)
Karunakar Reddy G writes:
> thanx Quinn, it helps me alot your points...
> one more problem I always encountered problems with 'mbuf' structure.
> In my code I defined in this way , works fine with Mac 10.1.3 but gives
> error with Mac 10.4
> struct mbuf *pkt;
> pkt->m_pkthdr.len = 6;
> error: invalid use of undefined type 'struct mbuf'
> I heard that 'mbuf ' structure is modified but dont know how this structure
> is defined.
Mbufs are now opaque and you must use the mbuf kpi to access them.
See sys/kpi_mbuf.h in the kernel framework on 10.4.
For your example, you'd use:
mbuf_pkthdr_setlen(pkt, 6)
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden