Define HAVE_UNISTD_H on Darwin/macOS: Fixes a compiler failure due to missing function prototype.
This commit is contained in:
parent
e2f01a7e8a
commit
04e4a14edc
3 changed files with 6 additions and 0 deletions
|
|
@ -80,6 +80,10 @@ typedef char *SLIRPcaddr_t;
|
|||
# include <stdint.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#ifndef _MSC_VER
|
||||
#include <sys/time.h>
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue