Author: jim Date: Wed Apr 20 13:37:50 2005 New Revision: 162064 URL: http://svn.apache.org/viewcvs?rev=162064&view=rev Log: Handle BEOS_R5 weirdness with gethostname()
Modified: apr/apr/trunk/network_io/unix/sockopt.c Modified: apr/apr/trunk/network_io/unix/sockopt.c URL: http://svn.apache.org/viewcvs/apr/apr/trunk/network_io/unix/sockopt.c?rev=162064&r1=162063&r2=162064&view=diff ============================================================================== --- apr/apr/trunk/network_io/unix/sockopt.c (original) +++ apr/apr/trunk/network_io/unix/sockopt.c Wed Apr 20 13:37:50 2005 @@ -355,7 +355,11 @@ apr_status_t apr_gethostname(char *buf, apr_int32_t len, apr_pool_t *cont) { - if (gethostname(buf, len) == -1) { +#ifdef BEOS_R5 + if (gethostname(buf, len) == 0) { +#else + if (gethostname(buf, len) != 0) { +#endif buf[0] = '\0'; return errno; }