From: Olle Johansson Date: Thu, 23 Apr 2009 10:07:26 +0000 (+0000) Subject: unistd.h is required for usleep() on Darwin. It will not hurt to include it always X-Git-Tag: 1.4.25-rc1~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1dac2a69e26b00d60141a28fd8b03b8c312254e1;p=thirdparty%2Fasterisk.git 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 --- 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 \