tcpdump mailing list archives

Re: Fix pcap-linux.c compilation with non-glibc


From: Bruce M Simpson <bms () incunabulum net>
Date: Sat, 01 Mar 2008 08:25:25 +0000

Kris Katterjohn wrote:

| I've attached a patch, and submitted it to the SF.net tracker, to check
| for socklen_t in configure.  pcap-linux.c is the only file that uses it,
| but the #ifndef test to check if it's all ready defined or not is broken.
|
| Currently it assumes that glibc is the only library that defines
| socklen_t, so when a different lib that defines it is used, compilation
| fails with a "previous declaration" error.
|


You might want to look in XORP for a fairly rigorous set of platform-independent autoconf tests, including (if memory serves me right) socklen_t.

cheers
BMS
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: