Commit 6cb41fa3 authored by Simon Morlat's avatar Simon Morlat

SO_REUSEPORT doesn't exist in debian6

parent f64cfa99
......@@ -186,7 +186,7 @@ static ortp_socket_t create_and_bind(const char *addr, int *port, int *sock_fami
{
ortp_warning ("Fail to set rtp address reusable: %s.", getSocketError());
}
#ifndef WIN32
#ifdef SO_REUSEPORT
/*SO_REUSEPORT is required on mac and ios especially for doing multicast*/
err = setsockopt (sock, SOL_SOCKET, SO_REUSEPORT,
(SOCKET_OPTION_VALUE)&optval, sizeof (optval));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment