Package: libbsd-dev Severity: wishlist Tags: patch El 25 de desembre de 2011 11:56, Robert Millan <r...@debian.org> ha escrit: >> +#define __FAVOR_BSD 1 >> #include <netinet/in_systm.h> >> #include <netinet/in.h> >> #include <netinet/ip.h> >> #include <netinet/ip_icmp.h> >> #include <netinet/tcp.h> >> #include <netinet/udp.h> >> +#undef __FAVOR_BSD > > Shouldn't this kind of fix be in libbsd-dev? E.g. in overlay netinet/in.h: > > #if __FAVOR_BSD > # include_next <netinet/in.h> > #else > # define __FAVOR_BSD 1 > # include_next <netinet/in.h> > # undef __FAVOR_BSD > #endif
Let's make a bug out of this. Patch attached. -- Robert Millan
--- /dev/null +++ b/include/bsd/netinet/tcp.h @@ -0,0 +1,8 @@ +#include <features.h> +#if __FAVOR_BSD +# include_next <netinet/tcp.h> +#else +# define __FAVOR_BSD 1 +# include_next <netinet/tcp.h> +# undef __FAVOR_BSD +#endif --- /dev/null +++ b/include/bsd/netinet/udp.h @@ -0,0 +1,8 @@ +#include <features.h> +#if __FAVOR_BSD +# include_next <netinet/udp.h> +#else +# define __FAVOR_BSD 1 +# include_next <netinet/udp.h> +# undef __FAVOR_BSD +#endif