Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

unix: include uv.h in src/version.c

Include uv.h so the compiler sees the right visibility attribute for
uv_version() and uv_version_string().

GYP builds compile with -fvisibility=hidden. Before this commit, the
symbols were not visible in libuv.so.

Fixes joyent/node#5213.
  • Loading branch information...
commit f1215b791811e5c860152ecde038f35537dab57f 1 parent ec24bfa
@bnoordhuis bnoordhuis authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/version.c
View
4 src/version.c
@@ -19,6 +19,7 @@
* IN THE SOFTWARE.
*/
+#include "uv.h"
/*
* Versions with an even minor version (e.g. 0.6.1 or 1.0.4) are API and ABI
@@ -26,6 +27,9 @@
* releases.
*/
+#undef UV_VERSION_MAJOR /* TODO(bnoordhuis) Remove in v0.11. */
+#undef UV_VERSION_MINOR /* TODO(bnoordhuis) Remove in v0.11. */
+
#define UV_VERSION_MAJOR 0
#define UV_VERSION_MINOR 10
#define UV_VERSION_PATCH 4
Please sign in to comment.
Something went wrong with that request. Please try again.