From 2721ba1d734e17330efd7c63255c0dea325ce452 Mon Sep 17 00:00:00 2001 From: Paddy Byers Date: Wed, 14 Dec 2011 11:18:18 +0000 Subject: [PATCH] Extern symbols --- deps/uv/include/uv.h | 8 +++++++- src/node.h | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/deps/uv/include/uv.h b/deps/uv/include/uv.h index 521feaf2a5ba..b09a08533412 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 bf013d930533..cf43d01bd02a 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;