|
@ -350,12 +350,11 @@ static Handle<Value> Connect(const Arguments& args) { |
|
|
return Undefined(); |
|
|
return Undefined(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#if !defined(SUN_LEN) |
|
|
// Mac's SUN_LEN is broken
|
|
|
# if defined(__APPLE__) |
|
|
#if defined(__APPLE__) |
|
|
# define SUN_LEN(ptr) ((ptr)->sun_len-2) |
|
|
# define SUN_LEN(ptr) ((ptr)->sun_len-2) |
|
|
# else |
|
|
#elif !defined(SUN_LEN) |
|
|
# define SUN_LEN(ptr) strlen((ptr)->sun_path) |
|
|
# define SUN_LEN(ptr) strlen((ptr)->sun_path) |
|
|
#endif |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#define ADDRESS_TO_JS(info, address_storage) \ |
|
|
#define ADDRESS_TO_JS(info, address_storage) \ |
|
|