Date: Sat, 08 Sep 2001 05:33:25 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Bill Fenner <fenner@research.att.com> Cc: arch@freebsd.org Subject: Re: Causing <netinet/in.h> to depend on <sys/socket.h> Message-ID: <3B9A1015.55FBA110@mindspring.com> References: <200109071748.KAA21991@windsor.research.att.com> <3B991BF8.5BF2E5E2@mindspring.com> <200109072105.OAA24949@windsor.research.att.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Bill Fenner wrote: > > They are not pointers. That's why I included a reference to the > API spec; it says that the structure is, e.g.: > > struct group_source_req { > uint32_t gsr_interface; /* interface index */ > struct sockaddr_storage gsr_group; /* group address */ > struct sockaddr_storage gsr_source; /* source address */ > }; > > That's why I said the API makes <sys/socket.h> a prerequisite for > <netinet/in.h>. The quick answer: put it in <net/storage.h>; this will avoid the implied dependency, and avoid trashing all the code with another include or trashing the include with an implied include after all the hard work to get rid of the ugly things. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B9A1015.55FBA110>