[asterisk-commits] mvanbaak: trunk r162583 - /trunk/res/snmp/agent.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 10 05:34:10 CST 2008
Author: mvanbaak
Date: Wed Dec 10 05:34:09 2008
New Revision: 162583
URL: http://svn.digium.com/view/asterisk?view=rev&rev=162583
Log:
Make res_snmp.so compile on OpenBSD.
OpenBSD uses an old version of gcc which throws an error
if you use a macro that's not #defined
Modified:
trunk/res/snmp/agent.c
Modified: trunk/res/snmp/agent.c
URL: http://svn.digium.com/view/asterisk/trunk/res/snmp/agent.c?view=diff&rev=162583&r1=162582&r2=162583
==============================================================================
--- trunk/res/snmp/agent.c (original)
+++ trunk/res/snmp/agent.c Wed Dec 10 05:34:09 2008
@@ -45,6 +45,14 @@
#endif
#ifndef HAVE_DMALLOC_H
#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>
More information about the asterisk-commits
mailing list