From 5143d54ad36a020ddbe0d44ea9c98c06e31186e6 Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Tue, 7 Aug 2012 12:22:28 +0200 Subject: [PATCH] Allow inclusion of 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. --- include/uv.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uv.h b/include/uv.h index 2eb7b070..e08cc303 100644 --- a/include/uv.h +++ b/include/uv.h @@ -53,6 +53,10 @@ extern "C" { #include /* int64_t */ #include /* size_t */ +#if defined(__SVR4) && !defined(__unix__) +# define __unix__ +#endif + #if defined(__unix__) || defined(__POSIX__) || defined(__APPLE__) # include "uv-private/uv-unix.h" #else