[dsc] [Dsc-maintainers] pcap.c, const struct udphdr on Debian/kFreeBSD

Marc Haber mh+dsc at zugschlus.de
Tue Apr 12 14:20:44 UTC 2011

Hi Duane,

On Mon, Apr 11, 2011 at 10:34:46AM -0600, Duane Wessels wrote:
> Near the top of pcap.c you'll find this:
>     #ifdef __linux__
>     #define uh_dport dest
>     #define uh_sport source
> My guess is that "__linux__" is not defined for this compile
> environment.
> I'm not saying it should be.  I don't know the ways of Debian/kFreeBSD.
> If there is another symbol that can be checked, we should include it
> in the if statement.

The Debian/kFreeBSD porters suggest that you should check for a GNU
libc system instead of linux. The discussion is in
http://bugs.debian.org/622226, with a probably helpful hint in

Does this help?


Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190

More information about the dsc mailing list