On Wed, Oct 08, 2003 at 12:16:36PM -0400, Simon Law wrote: > On Wed, Oct 08, 2003 at 11:51:42AM -0400, Daniel Jacobowitz wrote: > > > I would suggest touching a net/sock.h. The stuff inside it > > > isn't very important at all to user-space processes. See what I have > > > done for libdumbnet 1.7. > > > > Absolutely not. Stop using <linux/udp.h> instead. > > What would you suggest as a reasonable alternative to > linux/udp.h? libdumbnet happens to manipulate firewall rules directly > and needs to include linux/netfilter_ipv4/ipchains_core.h. Perhaps I > could reproduce duplicate linux/udp.h and include it in the package, but > that seems like needless duplication. > > Of course, you could say that userspace programs shouldn't be > fiddling with this kind of stuff. But I think that's slightly unfair.
Fairness is hardly the issue. This is the problem that the occasionally discussed "linuxabi" project is supposed to solve. If you must, just define the appropriate guard macro to prevent linux/udp.h from being included, include <netinet/udp.h>, and patch up any differences you need to using #define. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

