Allow inclusion of <uv.h> with Sun Studio compiler

The Sun Studio compiler did not define any of the symbols used to determine if
the system was a unix-like system or not causing it to include the windows
header.
This commit is contained in:
Trond Norbye 2012-08-07 12:22:28 +02:00 committed by Ben Noordhuis
parent cbb930024f
commit 5143d54ad3

View File

@ -53,6 +53,10 @@ extern "C" {
#include <stdint.h> /* int64_t */
#include <sys/types.h> /* size_t */
#if defined(__SVR4) && !defined(__unix__)
# define __unix__
#endif
#if defined(__unix__) || defined(__POSIX__) || defined(__APPLE__)
# include "uv-private/uv-unix.h"
#else