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:
parent
cbb930024f
commit
5143d54ad3
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user