Subject: fddipad on NetBSD
To: None <tcpdump-workers@lists.tcpdump.org>
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
List: tech-net
Date: 04/06/2005 21:14:00
-----BEGIN PGP SIGNED MESSAGE-----
I'd like to make sure that libpcap 0.9.1-096 compiles on NetBSD 1.6.
It appears that the test for fddipad says defined(__NetBSD__),
but that member must have been introduced in a post-1.6 version of
NetBSD.
Can we fix this to depend upon a NetBSD version macro? If so, how new
does it have to be?
This worked, but may not be correct:
istari-[~/src/tcpdump/libpcap] mcr 1061 %cvs diff pcap-int.h
Index: pcap-int.h
===================================================================
RCS file: /tcpdump/master/libpcap/pcap-int.h,v
retrieving revision 1.68
diff -r1.68 pcap-int.h
246c246
< #if defined(ultrix) || defined(__osf__) || defined(__NetBSD__)
- ---
> #if defined(ultrix) || defined(__osf__) || (defined(__NetBSD__) && __NetBSD_Version__ > 106000000)
I'll pull this up into the next beta, unless someone has a better idea.
- --
] Michael Richardson Xelerance Corporation, Ottawa, ON | firewalls [
] mcr @ xelerance.com Now doing IPsec training, see |net architect[
] http://www.sandelman.ca/mcr/ www.xelerance.com/training/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys
iQCVAwUBQlSJVoqHRg3pndX9AQGm7QQA2nOwtFjxi4xxqkqXx6N/2cxtUb3/Uxu6
cr+1mUFPjXRv7XCBffDk1s4r5JB0ycIzgmQpURuMcIj/eUuA9CnEcBz0wqFPR0os
xp+mDrrnfYv8H1EFMbnJGV0se7nrnhNg55U8i0OF5vKI+lgMvC23zV4N6lSlcLHg
Lx1Y5tdotU4=
=eRzV
-----END PGP SIGNATURE-----