Map the SO_BROADCAST option to invalid option, when not supported by the

system.
This commit is contained in:
srinivas%netscape.com 1999-10-22 20:56:25 +00:00
Родитель ddac4b3b59
Коммит 08f0be3bcd
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -448,6 +448,10 @@ PRStatus PR_CALLBACK _PR_SocketSetSocketOption(PRFileDesc *fd, const PRSocketOpt
#define TCP_MAXSEG _PR_NO_SUCH_SOCKOPT
#endif
#ifndef SO_BROADCAST /* enable broadcast on udp sockets */
#define SO_BROADCAST _PR_NO_SUCH_SOCKOPT
#endif
PRStatus _PR_MapOptionName(
PRSockOption optname, PRInt32 *level, PRInt32 *name)
{