Permalink
Browse files

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.
  • Loading branch information...
1 parent cbb9300 commit 5143d54ad36a020ddbe0d44ea9c98c06e31186e6 @trondn trondn committed with bnoordhuis Aug 7, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 include/uv.h
View
@@ -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

0 comments on commit 5143d54

Please sign in to comment.