]> git.pld-linux.org Git - packages/libuv.git/blob - 0001-unix-include-uv.h-in-src-version.c.patch
uses gyp library not binary
[packages/libuv.git] / 0001-unix-include-uv.h-in-src-version.c.patch
1 From fb660262d4f8b6d0f300a3923063ec5a718411ad Mon Sep 17 00:00:00 2001
2 From: Ben Noordhuis <info@bnoordhuis.nl>
3 Date: Thu, 4 Apr 2013 03:02:06 +0200
4 Subject: [PATCH] unix: include uv.h in src/version.c
5
6 Include uv.h so the compiler sees the right visibility attribute for
7 uv_version() and uv_version_string().
8
9 GYP builds compile with -fvisibility=hidden. Before this commit, the
10 symbols were not visible in libuv.so.
11
12 Fixes joyent/node#5213.
13 (cherry picked from commit f1215b791811e5c860152ecde038f35537dab57f)
14 ---
15  src/version.c | 4 ++++
16  1 file changed, 4 insertions(+)
17
18 diff --git a/src/version.c b/src/version.c
19 index 0ee0753..7326180 100644
20 --- a/src/version.c
21 +++ b/src/version.c
22 @@ -19,6 +19,7 @@
23   * IN THE SOFTWARE.
24   */
25  
26 +#include "uv.h"
27  
28   /*
29   * Versions with an even minor version (e.g. 0.6.1 or 1.0.4) are API and ABI
30 @@ -26,6 +27,9 @@
31   * releases.
32   */
33  
34 +#undef UV_VERSION_MAJOR   /* TODO(bnoordhuis) Remove in v0.11. */
35 +#undef UV_VERSION_MINOR   /* TODO(bnoordhuis) Remove in v0.11. */
36 +
37  #define UV_VERSION_MAJOR 0
38  #define UV_VERSION_MINOR 10
39  #define UV_VERSION_PATCH 3
40 -- 
41 1.8.1.4
42
This page took 0.488229 seconds and 3 git commands to generate.