Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/2783736 to your computer and use it in GitHub Desktop.
Save isaacs/2783736 to your computer and use it in GitHub Desktop.
From a87448739643a4ff89471ed49dfcb8348d1fc4c8 Mon Sep 17 00:00:00 2001
From: isaacs <i@izs.me>
Date: Thu, 24 May 2012 19:31:29 +0000
Subject: [PATCH] Fix sunos build: undeclared variable 'handle'
---
src/unix/core.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/unix/core.c b/src/unix/core.c
index 923629a..657397b 100644
--- a/src/unix/core.c
+++ b/src/unix/core.c
@@ -317,6 +317,7 @@ static int uv_getaddrinfo_done(eio_req* req_) {
uv_getaddrinfo_t* req = req_->data;
struct addrinfo *res = req->res;
#if __sun
+ uv_getaddrinfo_t* handle = req->data;
size_t hostlen = strlen(handle->hostname);
#endif
--
1.7.6.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment