While testing net-snmp-rc1 I have noticed C++ packages (like tog-pegasus) do not like include/net-snmp/library/types.h.
The file contains closing brace for the C++ guard, but not the opening one, so I'd suggest to add one in this patch. The C++ guard is not needed at all, there is no function declared in the header file, but I noticed it's common practice here. Please note I explicitly did not fix coding style of the file, I think it should be separated from this fix. Let me know if I shall tidy up the whitespaces. Signed-off-by: Jan Safranek <[email protected]> --- net-snmp/include/net-snmp/library/types.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/net-snmp/include/net-snmp/library/types.h b/net-snmp/include/net-snmp/library/types.h index dd44087..17ccd2b 100644 --- a/net-snmp/include/net-snmp/library/types.h +++ b/net-snmp/include/net-snmp/library/types.h @@ -8,6 +8,10 @@ #include <net-snmp/types.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef struct netsnmp_index_s { size_t len; oid *oids; ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
