diff options
author | Corey Farrell <git@cfware.com> | 2017-03-31 13:09:38 -0400 |
---|---|---|
committer | Corey Farrell <git@cfware.com> | 2017-04-03 16:16:09 -0400 |
commit | 8e36064109b6fabc6cd8caa59e48f9b523c7485b (patch) | |
tree | 25fa6a4cd51fa3ce7c5bebd4a5e9446665ce9282 /include/asterisk.h | |
parent | cf4dd32befbd82bb9534f0f16bbc21341c03e8e5 (diff) |
core: Improve/simplify handling of required headers.
* Report failures if configure finds a required header is missing.
* Deduplicate includes between asterisk.h, astmm.h and compat.h.
* Unconditionally include headers in compat.h if required elsewhere.
Change-Id: Ie67d0185ca71fbfb81c9bdfaebe46a49e3c56dc5
Diffstat (limited to 'include/asterisk.h')
-rw-r--r-- | include/asterisk.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/asterisk.h b/include/asterisk.h index dc530dfd4..899438b0e 100644 --- a/include/asterisk.h +++ b/include/asterisk.h @@ -19,13 +19,12 @@ #define _ASTERISK_H #include "asterisk/autoconfig.h" +#include "asterisk/compat.h" #if !defined(NO_MALLOC_DEBUG) && !defined(STANDALONE) && !defined(STANDALONE2) && defined(MALLOC_DEBUG) #include "asterisk/astmm.h" #endif -#include "asterisk/compat.h" - /* Default to allowing the umask or filesystem ACLs to determine actual file * creation permissions */ @@ -54,8 +53,6 @@ #if defined(DEBUG_FD_LEAKS) && !defined(STANDALONE) && !defined(STANDALONE2) && !defined(STANDALONE_AEL) /* These includes are all about ordering */ -#include <stdio.h> -#include <sys/types.h> #include <sys/stat.h> #include <sys/socket.h> #include <fcntl.h> |