[asterisk-commits] oej: branch 1.4 r190187 - /branches/1.4/include/asterisk/lock.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 23 05:07:29 CDT 2009


Author: oej
Date: Thu Apr 23 05:07:26 2009
New Revision: 190187

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190187
Log:
unistd.h is required for usleep() on Darwin. It will not hurt to include it always
on other platforms either.

Modified:
    branches/1.4/include/asterisk/lock.h

Modified: branches/1.4/include/asterisk/lock.h
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/include/asterisk/lock.h?view=diff&rev=190187&r1=190186&r2=190187
==============================================================================
--- branches/1.4/include/asterisk/lock.h (original)
+++ branches/1.4/include/asterisk/lock.h Thu Apr 23 05:07:26 2009
@@ -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"
@@ -104,7 +105,6 @@
 #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 \




More information about the asterisk-commits mailing list