include "logger.h" and errno.h from asterisk.h - usage shows that they

were included almost everywhere.
Remove some of the instances.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89424 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2007-11-19 18:52:04 +00:00
parent 406f6f2909
commit 0595b5e2aa
136 changed files with 8 additions and 192 deletions

View File

@@ -25,6 +25,10 @@
* \author Mark Spencer <markster@digium.com>
*/
/* Prevent inclusion of logger.h - it redefines LOG_* which we need
* to define syslog_level_map. Later, we force its inclusion again.
*/
#define _ASTERISK_LOGGER_H
#include "asterisk.h"
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
@@ -55,6 +59,7 @@ static int syslog_level_map[] = {
#define SYSLOG_NLEVELS sizeof(syslog_level_map) / sizeof(int)
#undef _ASTERISK_LOGGER_H /* now include logger.h */
#include "asterisk/logger.h"
#include "asterisk/lock.h"
#include "asterisk/options.h"