summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrinivas%netscape.com <devnull@localhost>1999-10-22 20:56:25 +0000
committersrinivas%netscape.com <devnull@localhost>1999-10-22 20:56:25 +0000
commite5a0b62af4e832a9f0e71eacb5b16ecaf26651b1 (patch)
tree76ab1e922d1fd92ca9115d2985337b506b74a767
parentf7bdd4e60380c1b5c0bc92ea06ef55d82bcd25a3 (diff)
downloadnspr-hg-e5a0b62af4e832a9f0e71eacb5b16ecaf26651b1.tar.gz
Map the SO_BROADCAST option to invalid option, when not supported by the
system.
-rw-r--r--pr/src/io/prmapopt.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/pr/src/io/prmapopt.c b/pr/src/io/prmapopt.c
index e99ce600..3dac7801 100644
--- a/pr/src/io/prmapopt.c
+++ b/pr/src/io/prmapopt.c
@@ -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)
{