Re: Mac OS 10.4 (Tiger) compilation errors ( GCC v3.3 ) with X Code 2.0 tool
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Andrew Gallatin