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
This commit is contained in:
Olle Johansson
2009-04-23 10:07:26 +00:00
parent c922eca9a8
commit 1dac2a69e2

View 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"
@@ -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 \