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
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@162585 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Michiel van Baak 18 years ago
parent e9177c1d06
commit bf77311441

@ -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>

Loading…
Cancel
Save