]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
unistd.h is required for usleep() on Darwin. It will not hurt to include it always
authorOlle Johansson <oej@edvina.net>
Thu, 23 Apr 2009 10:07:26 +0000 (10:07 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 23 Apr 2009 10:07:26 +0000 (10:07 +0000)
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

index 8525e18c5b7bb9d1f13f37a1641b14274b546ff4..471c938f2431d2be33869e85a54cd0dfb14bb51e 100644 (file)
@@ -49,6 +49,7 @@
 #include <netdb.h>
 #include <time.h>
 #include <sys/param.h>
+#include <unistd.h>
 
 #ifndef HAVE_PTHREAD_RWLOCK_TIMEDWRLOCK
 #include "asterisk/time.h"
 #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 \