[asterisk-commits] mvanbaak: branch 1.6.1 r162585 - in /branches/1.6.1: ./ res/snmp/agent.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Dec 10 05:37:29 CST 2008


Author: mvanbaak
Date: Wed Dec 10 05:37:29 2008
New Revision: 162585

URL: http://svn.digium.com/view/asterisk?view=rev&rev=162585
Log:
Merged revisions 162583 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r162583 | mvanbaak | 2008-12-10 12:34:09 +0100 (Wed, 10 Dec 2008) | 5 lines
  
  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:
    branches/1.6.1/   (props changed)
    branches/1.6.1/res/snmp/agent.c

Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.1/res/snmp/agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.1/res/snmp/agent.c?view=diff&rev=162585&r1=162584&r2=162585
==============================================================================
--- branches/1.6.1/res/snmp/agent.c (original)
+++ branches/1.6.1/res/snmp/agent.c Wed Dec 10 05:37:29 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