Thomas Anders wrote: > Magnus Fromreide wrote: >> Further checking shows that <linux/types.h> showed up between 1.0.9 and >> 1.2.13 while <linux/ethtool.h> showed up between 2.2.26 and 2.4.18 so if >> ethtool.h exists then types.h also exists. >> types.h have always declared the __uN versions. >> >> Thus the attached patch should work for all versions (Tested on kernel >> 2.6.18.6, if someone could test it on older versions as well then that >> would be nice) > > Committed to 5.[234].x CVS and CVS MAIN. Thanks for the patch.
Unfortunately this patch seems to break my CVS MAIN build on RH9 (2.4.20): /usr/include/linux/ethtool.h:23: parse error before "autoneg" /usr/include/linux/ethtool.h:24: parse error before "maxtxpkt" /usr/include/linux/ethtool.h:25: parse error before "maxrxpkt" /usr/include/linux/ethtool.h:26: parse error before "reserved" /usr/include/linux/ethtool.h:27: parse error before '}' token /usr/include/linux/ethtool.h:32: parse error before "u32" /usr/include/linux/ethtool.h:40: parse error before "eedump_len" /usr/include/linux/ethtool.h:41: parse error before "regdump_len" /usr/include/linux/ethtool.h:47: parse error before "u32" /usr/include/linux/ethtool.h:49: parse error before "wolopts" /usr/include/linux/ethtool.h:50: parse error before "sopass" /usr/include/linux/ethtool.h:51: parse error before '}' token /usr/include/linux/ethtool.h:55: parse error before "u32" /usr/include/linux/ethtool.h:61: parse error before "u32" /usr/include/linux/ethtool.h:63: parse error before "len" /usr/include/linux/ethtool.h:64: parse error before "data" /usr/include/linux/ethtool.h:65: parse error before '}' token /usr/include/linux/ethtool.h:69: parse error before "u32" /usr/include/linux/ethtool.h:71: parse error before "offset" /usr/include/linux/ethtool.h:72: parse error before "len" /usr/include/linux/ethtool.h:73: parse error before "data" /usr/include/linux/ethtool.h:74: parse error before '}' token make[2]: *** [if-mib/data_access/interface_linux.lo] Error 1 I haven't done any investigation yet. +Thomas -- Thomas Anders (thomas.anders at blue-cable.de) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
