aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-23 10:07:26 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2009-04-23 10:07:26 +0000
commit0f054b7cb93d5601631db00a0c697edd3ecfb6da (patch)
treec859ecaa65703c634dd6044b855865f4839954c6 /include
parent6b7aeb5c1ecb6c590f5e246520793e4fe7547299 (diff)
unistd.h is required for usleep() on Darwin. It will not hurt to include it always
on other platforms either. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@190187 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/lock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/lock.h b/include/asterisk/lock.h
index 8525e18c5..471c938f2 100644
--- a/include/asterisk/lock.h
+++ b/include/asterisk/lock.h
@@ -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 \