[AGENT++] patch when using clang compiler (patch attached inline)

Flaig Cyril Cyril.Flaig at albistechnologies.com
Wed Dec 18 13:50:02 CET 2013


Below you will find the patch inline.

Best regards
Cyril


clang.patch :

diff -rup agent++-4.0.2/include/agent_pp/agent++.h.in agent++-4.0.2-new/include/agent_pp/agent++.h.in
--- agent++-4.0.2/include/agent_pp/agent++.h.in	2013-05-09 16:33:13.000000000 +0200
+++ agent++-4.0.2-new/include/agent_pp/agent++.h.in	2013-12-18 13:16:16.980492951 +0100
@@ -203,7 +203,7 @@ typedef enum { READING, WRITING } access
 
 #define DEFAULT_ENGINE_BOOTS_FILE "snmpv3_boot_counter"
 
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__clang__)
 // g++ 4.0.1 of MacOS X 10.5.6 does not like the template declarations
 #define AGENTPP_DECL_TEMPL_OIDLIST_MIBSTATICENTRY
 #define AGENTPP_DECL_TEMPL_LIST_MIBENTRY


More information about the AGENTPP mailing list