use socket_set_reuseaddr

This commit is contained in:
Love Hornquist Astrand
2009-11-23 08:29:34 -08:00
parent ec2003ce09
commit 4c69333255

View File

@@ -713,12 +713,7 @@ heim_sipc_service_unix(const char *service,
if (fd < 0) if (fd < 0)
return errno; return errno;
#if defined(HAVE_SETSOCKOPT) && defined(SOL_SOCKET) && defined(SO_REUSEADDR) socket_set_reuseaddr(fd, 1);
{
int one = 1;
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (void *)&one, sizeof(one));
}
#endif
#ifdef LOCAL_CREDS #ifdef LOCAL_CREDS
{ {
int one = 1; int one = 1;