sockbuf is a kernel only structure, as should be evidenced by the
KERNEL define wrapper. You can't expect to define KERNEL and have
things work. Secondly, sockbuf is declared in the scope of the socket
structure.
IOW, if you aren't writing a kernel extension, don't even attempt to
use the sockbuf (or socket) structure.
I am writing a kernel extension. The #ifdef KERNEL thing is comes from what I saw in the source example I am drawing from. Regarding scope... This is the part that is a bit confusing to me. I never define a struct within a struct like this header does. How should a forward declaration for this be declared? I am able to work with the declare sockbuf* paramaeters in C implementation files with no complications. I don't know what the compiler is looking for when I try to do the same in a C++ file. Eric Long _______________________________________________ darwin-kernel mailing list | darwin-kernel@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-kernel Do not post admin requests to the list. They will be ignored.
participants (1)
-
Eric Long