diff options
author | Luigi Rizzo <rizzo@icir.org> | 2007-11-16 20:04:58 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2007-11-16 20:04:58 +0000 |
commit | fdb7f7ba3da0b1bb02c782eba68aa1fa4ba96800 (patch) | |
tree | c012d8f76915d410cf7446b1efc51e3c2e3f5e95 /channels/chan_zap.c | |
parent | fd7b3e7261ab74af7e8a98f5090bef00c31de8a5 (diff) |
Start untangling header inclusion in a way that does not affect
build times - tested, there is no measureable difference before and
after this commit.
In this change:
use asterisk/compat.h to include a small set of system headers:
inttypes.h, unistd.h, stddef.h, stddint.h, sys/types.h, stdarg.h,
stdlib.h, alloca.h, stdio.h
Where available, the inclusion is conditional on HAVE_FOO_H as determined
by autoconf.
Normally, source files should not include any of the above system headers,
and instead use either "asterisk.h" or "asterisk/compat.h" which does it
better.
For the time being I have left alone second-level directories
(main/db1-ast, etc.).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89333 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_zap.c')
-rw-r--r-- | channels/chan_zap.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 2ea37472c..b619be123 100644 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -50,8 +50,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") -#include <stdio.h> -#include <string.h> #ifdef __NetBSD__ #include <pthread.h> #include <signal.h> @@ -59,11 +57,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include <sys/signal.h> #endif #include <errno.h> -#include <stdlib.h> -#if !defined(SOLARIS) && !defined(__FreeBSD__) -#include <stdint.h> -#endif -#include <unistd.h> #include <sys/ioctl.h> #include <math.h> #include <ctype.h> |