Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Allow inclusion of <uv.h> with Sun Studio compiler
Browse files Browse the repository at this point in the history
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
trondn authored and bnoordhuis committed Aug 8, 2012
1 parent cbb9300 commit 5143d54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/uv.h
Expand Up @@ -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
Expand Down

0 comments on commit 5143d54

Please sign in to comment.