The easiest way to deal with the uv_ref/unref() change is to use the NODE_VERSION_AT_LEAST macro from node_version.h. This is what I did for node-ffi: https://github.com/rbranson/node-ffi/blob/02588f775de89aecde82a43bc537dd09e71d958d/src/callback_info.cc#L135-139
On Sat, Jun 16, 2012 at 10:48 AM, carter-thaxton <carter.thax...@gmail.com>wrote: > It might be worth mentioning that in v0.7 (unstable), and soon in v0.8 > (stable), the signatures of uv_ref() and uv_unref() have changed. > > Old: > - uv_ref(uv_loop_t *loop) > - uv_unref(uv_loop_t *loop) > > New: > - uv_ref(uv_handle_t *handle) > - uv_unref(uv_handle_t *handle) > > That means you can't really use uv_default_loop() anymore. Instead, you > need to pass a handle to something, e.g. uv_async_t. > > This is going to break a lot of native modules in the transition to v0.8. > I spent some time yesterday trying to update kkaeffer's node-sqlite3, and > ran into issues. > > Has anyone else had any luck making this transition, and has anyone > written up something describing the changes they had to make? I'm sure > that would be helpful. > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en