From 1dac2a69e26b00d60141a28fd8b03b8c312254e1 Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Thu, 23 Apr 2009 10:07:26 +0000 Subject: [PATCH] unistd.h is required for usleep() on Darwin. It will not hurt to include it always on other platforms either. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@190187 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h index 8525e18c5b..471c938f24 100644 --- a/include/asterisk/lock.h +++ b/include/asterisk/lock.h @@ -49,6 +49,7 @@ #include #include #include +#include #ifndef HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK #include "asterisk/time.h" @@ -104,7 +105,6 @@ #include #include #include -#include #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 \ -- 2.47.3