summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2013-01-29 20:19:28 +0000
committerJoshua Colp <jcolp@digium.com>2013-01-29 20:19:28 +0000
commitffaf79b1eb7e7a91d2262b5e981ed4fa7142f9a9 (patch)
treee80d616d630a724bab119105a7c8c201c232dfa5 /main
parent8cc7aea09b035b7c88da6f378a6f8f9aeb6e6827 (diff)
Fix an issue where building with DEBUG_FD_LEAKS enabled would not work due to sorcery using calls called "open" and "close".
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@380407 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/sorcery.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/sorcery.c b/main/sorcery.c
index ca7efb0bc..bed4d8533 100644
--- a/main/sorcery.c
+++ b/main/sorcery.c
@@ -39,6 +39,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/netsock2.h"
#include "asterisk/module.h"
+/* To prevent DEBUG_FD_LEAKS from interfering with things we undef open and close */
+#undef open
+#undef close
+
/*! \brief Number of buckets for wizards (should be prime for performance reasons) */
#define WIZARD_BUCKETS 7