diff --git a/res/snmp/agent.c b/res/snmp/agent.c index c0eda9fe4b..225fb63a76 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 #include #include