diff options
-rw-r--r-- | res/snmp/agent.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/res/snmp/agent.c b/res/snmp/agent.c index c0eda9fe4..225fb63a7 100644 --- a/res/snmp/agent.c +++ b/res/snmp/agent.c @@ -47,6 +47,14 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #define HAVE_DMALLOC_H 0 /* XXX we shouldn't do this */ #endif +#if defined(__OpenBSD__) +/* + * OpenBSD uses old "legacy" cc which has a rather pedantic builtin preprocessor. + * Using a macro which is not #defined throws an error. + */ +#define __NetBSD_Version__ 0 +#endif + #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/net-snmp-agent-includes.h> |