Permalink
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 nodejs/node-v0.x-archive#5213.
  • Loading branch information...
1 parent ec24bfa commit f1215b791811e5c860152ecde038f35537dab57f @bnoordhuis bnoordhuis committed Apr 4, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/version.c
View
4 src/version.c
@@ -19,13 +19,17 @@
* 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
* stable. When the minor version is odd, the API can change between patch
* 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

0 comments on commit f1215b7

Please sign in to comment.