test,sunos: use unistd.h code branch
Tests do not compile when selecting the non-`unistd.h` branch. PR-URL: https://github.com/libuv/libuv/pull/2200 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This commit is contained in:
parent
f62240b2d1
commit
aa4ff14a5a
@ -23,7 +23,8 @@
|
||||
#include "task.h"
|
||||
|
||||
#if defined(__unix__) || defined(__POSIX__) || \
|
||||
defined(__APPLE__) || defined(_AIX) || defined(__MVS__)
|
||||
defined(__APPLE__) || defined(__sun) || \
|
||||
defined(_AIX) || defined(__MVS__)
|
||||
#include <unistd.h> /* unlink, etc. */
|
||||
#else
|
||||
# include <direct.h>
|
||||
|
||||
@ -30,7 +30,8 @@
|
||||
|
||||
/* FIXME we shouldn't need to branch in this file */
|
||||
#if defined(__unix__) || defined(__POSIX__) || \
|
||||
defined(__APPLE__) || defined(_AIX) || defined(__MVS__)
|
||||
defined(__APPLE__) || defined(__sun) || \
|
||||
defined(_AIX) || defined(__MVS__)
|
||||
#include <unistd.h> /* unlink, rmdir, etc. */
|
||||
#else
|
||||
# include <winioctl.h>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user