On Mon, May 14, 2012 at 12:53:39PM -0400, Robert Story wrote:
> NB>  #include <net-snmp/data_access/swrun.h>
> NB>  #include "hrSWRunPerfTable.h"
> NB> +#include "data_access/swrun.h"
> 
> My question is why isn't #include <net-snmp/data_access/swrun.h> picking up
> swrun.h? Do we really need both includes?

They way the contents is organized, yes. But I didn't write that
code.

The culprit is the declaration

netsnmp_container *netsnmp_swrun_container(void);

which is in data_access/swrun.h. The other solution is to move the
two function declaration that exist in that header to the one in the
include directory.

This patch is just backporting what was done in 5.6, so it is the
safe solution.

/Niels

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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to