| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index c4e136657ba9a6f0d0fc9d0270ee31d4b42d30ce..ccf1cbd9514b528175bdae7e410ed4cd9180d175 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -25,17 +25,17 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#include <limits.h>
|
| -
|
| -#ifndef WIN32
|
| -#include <signal.h> // kill
|
| -#include <unistd.h> // getpid
|
| -#endif // WIN32
|
| +#include <climits>
|
| +#include <csignal>
|
| #include <string>
|
| #include <map>
|
|
|
| #include "v8.h"
|
|
|
| +#if V8_OS_POSIX
|
| +#include <unistd.h> // NOLINT
|
| +#endif
|
| +
|
| #include "api.h"
|
| #include "arguments.h"
|
| #include "cctest.h"
|
| @@ -20031,7 +20031,7 @@ THREADED_TEST(JSONParseNumber) {
|
| }
|
|
|
|
|
| -#ifndef WIN32
|
| +#if V8_OS_POSIX
|
| class ThreadInterruptTest {
|
| public:
|
| ThreadInterruptTest() : sem_(NULL), sem_value_(0) { }
|
| @@ -20273,4 +20273,4 @@ TEST(AccessCheckThrows) {
|
| v8::V8::SetFailedAccessCheckCallbackFunction(NULL);
|
| }
|
|
|
| -#endif // WIN32
|
| +#endif // V8_OS_POSIX
|
|
|