summaryrefslogtreecommitdiff
path: root/include/asterisk/lock.h
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-11-16 20:04:58 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-11-16 20:04:58 +0000
commitfdb7f7ba3da0b1bb02c782eba68aa1fa4ba96800 (patch)
treec012d8f76915d410cf7446b1efc51e3c2e3f5e95 /include/asterisk/lock.h
parentfd7b3e7261ab74af7e8a98f5090bef00c31de8a5 (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 'include/asterisk/lock.h')
-rw-r--r--include/asterisk/lock.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h
index 52164ed03..eb09bbf45 100644
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -46,7 +46,7 @@
#define _ASTERISK_LOCK_H
#include <pthread.h>
-#include <netdb.h>
+// #include <netdb.h>
#include <time.h>
#include <sys/param.h>
@@ -99,9 +99,6 @@
#endif
#include <errno.h>
-#include <string.h>
-#include <stdio.h>
-#include <unistd.h>
#define AST_MUTEX_INIT_VALUE { PTHREAD_MUTEX_INIT_VALUE, 1, { NULL }, { 0 }, 0, { NULL }, { 0 }, PTHREAD_MUTEX_INIT_VALUE }
#define AST_MUTEX_INIT_VALUE_NOTRACKING \