From 89d8d786527a6e9ee00c8c8ad1f1954114a9441d Mon Sep 17 00:00:00 2001 From: rizzo Date: Tue, 20 Nov 2007 23:16:15 +0000 Subject: move asterisk/paths.h outside asterisk.h and into those files who really need it. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89466 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk.h | 1 - include/asterisk/ael_structs.h | 6 ++++++ include/asterisk/channel.h | 1 - include/asterisk/compat.h | 4 ++++ include/asterisk/paths.h | 2 -- include/asterisk/utils.h | 1 - 6 files changed, 10 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/asterisk.h b/include/asterisk.h index 5605d2f3b..cb8499c3c 100644 --- a/include/asterisk.h +++ b/include/asterisk.h @@ -29,7 +29,6 @@ #include "asterisk/compat.h" -#include "asterisk/paths.h" #include "asterisk/logger.h" /* Default to allowing the umask or filesystem ACLs to determine actual file diff --git a/include/asterisk/ael_structs.h b/include/asterisk/ael_structs.h index 133c4266a..fa551bf91 100644 --- a/include/asterisk/ael_structs.h +++ b/include/asterisk/ael_structs.h @@ -25,6 +25,12 @@ #ifndef _ASTERISK_AEL_STRUCTS_H #define _ASTERISK_AEL_STRUCTS_H +/* + * We include asterisk/paths.h here because it is a convenient place + * that doesn't require us to rebuild ael files from .fl/.y + */ +#include "asterisk/paths.h" + #include "pval.h" #if !defined(SOLARIS) && !defined(__CYGWIN__) diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index f16c6f0b9..b79c0c29c 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -150,7 +150,6 @@ extern "C" { #include "asterisk/utils.h" #include "asterisk/linkedlists.h" #include "asterisk/stringfields.h" -#include #define DATASTORE_INHERIT_FOREVER INT_MAX diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h index 19ae6e9b1..8a3225a16 100644 --- a/include/asterisk/compat.h +++ b/include/asterisk/compat.h @@ -29,6 +29,10 @@ #include #endif +#ifdef HAVE_LIMITS_H +#include +#endif + #ifdef HAVE_UNISTD_H #include #endif diff --git a/include/asterisk/paths.h b/include/asterisk/paths.h index 4c80c3199..f539c078e 100644 --- a/include/asterisk/paths.h +++ b/include/asterisk/paths.h @@ -18,8 +18,6 @@ #ifndef _ASTERISK_PATHS_H #define _ASTERISK_PATHS_H -#include - extern char ast_config_AST_CONFIG_DIR[PATH_MAX]; extern char ast_config_AST_CONFIG_FILE[PATH_MAX]; extern char ast_config_AST_MODULE_DIR[PATH_MAX]; diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index 6b55a4272..a9c8d5f0c 100644 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -25,7 +25,6 @@ #include "asterisk/network.h" -#include #include /* we want to override localtime_r */ #include "asterisk/lock.h" -- cgit v1.2.3