diff --git a/deps/uv/include/uv.h b/deps/uv/include/uv.h index b219b0c0771..bd61abb0504 100644 --- a/deps/uv/include/uv.h +++ b/deps/uv/include/uv.h @@ -43,7 +43,13 @@ extern "C" { # endif #else /* Unix. TODO: symbol hiding */ -# define UV_EXTERN /* nothing */ +# if defined(BUILDING_UV_SHARED) + /* Building shared library. Export everything from c-ares as well. */ +# define UV_EXTERN __attribute__((visibility("default"))) +# define CARES_BUILDING_LIBRARY 1 +# else +# define UV_EXTERN /* nothing */ +# endif #endif diff --git a/src/node.h b/src/node.h index bf013d93053..cf43d01bd02 100644 --- a/src/node.h +++ b/src/node.h @@ -142,7 +142,7 @@ class Isolate { void __FatalException(v8::TryCatch &try_catch); void __SetErrno(uv_err_t err); v8::Persistent local_env; - uv_loop_t *Loop(); + NODE_EXTERN uv_loop_t *Loop(); ext_statics statics_; int exit_status; int term_signal;