Fix solaris build

v0.7.4-release
Ryan Dahl 2010-07-16 22:36:22 -07:00
parent 0174ceb6b2
commit fa344d8514
1 changed files with 6 additions and 2 deletions

View File

@ -348,8 +348,12 @@ static Handle<Value> Connect(const Arguments& args) {
return Undefined(); return Undefined();
} }
#if defined(__APPLE__) #if !defined(SUN_LEN)
#define SUN_LEN(ptr) (ptr->sun_len-2) # if defined(__APPLE__)
# define SUN_LEN(ptr) ((ptr)->sun_len-2)
# else
# 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) \