[svn-commits] mvanbaak: branch 1.6.0 r162584 - in /branches/1.6.0: ./ res/snmp/agent.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Dec 10 05:36:29 CST 2008


Author: mvanbaak
Date: Wed Dec 10 05:36:28 2008
New Revision: 162584

URL: http://svn.digium.com/view/asterisk?view=rev&rev=162584
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.0/   (props changed)
    branches/1.6.0/res/snmp/agent.c

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

Modified: branches/1.6.0/res/snmp/agent.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/res/snmp/agent.c?view=diff&rev=162584&r1=162583&r2=162584
==============================================================================
--- branches/1.6.0/res/snmp/agent.c (original)
+++ branches/1.6.0/res/snmp/agent.c Wed Dec 10 05:36:28 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 svn-commits mailing list