The following patch remove some redundant includes. The removed includes 
are already included by rtnetlink.h itself - if they exist.

With the patch it compile at least for CentOS 5.5, Redhat 6.0 and Ubuntu 
10.10.

Index: agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c
===================================================================
--- agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c 
(revision 19722)
+++ agent/mibgroup/etherlike-mib/data_access/dot3stats_linux.c  (working 
copy)
@@ -139,11 +139,7 @@
  /*
   * The following code is based upon code I got from Stephen Hemminger
   */
-#include <linux/netlink.h>
  #include <linux/rtnetlink.h>
-#include <linux/if_link.h>
-#include <linux/if_addr.h>
-#include <linux/neighbour.h>
  #include <errno.h>

  struct rtnl_handle {

/Niels

-- 
Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
The purpose of computing is insight, not numbers   ---   R W Hamming

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to