summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-04-25 21:34:53 (GMT)
committerGuido van Rossum <guido@python.org>2000-04-25 21:34:53 (GMT)
commit2c8bcb8794478d7d10b494f915eadc759f58f549 (patch)
treef2115f014a6e5ab889e7abb2f86e511d96da4ef4 /Modules
parentf3335e193bd783ee8a57655091ea44a8b8f28c59 (diff)
downloadcpython-2c8bcb8794478d7d10b494f915eadc759f58f549.zip
cpython-2c8bcb8794478d7d10b494f915eadc759f58f549.tar.gz
cpython-2c8bcb8794478d7d10b494f915eadc759f58f549.tar.bz2
Patch by Charles G Waldman:
1) Adds MSG_DONTWAIT if defined (I needed this) 2) Spells "coreectly" correctly ;-)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 2b7eb8d..6649eea 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -524,7 +524,7 @@ BUILD_FUNC_DEF_2(makesockaddr,struct sockaddr *,addr, int,addrlen)
}
#ifdef __BEOS__
- /* XXX: BeOS version of accept() doesn't set family coreectly */
+ /* XXX: BeOS version of accept() doesn't set family correctly */
addr->sa_family = AF_INET;
#endif
@@ -2526,6 +2526,9 @@ initsocket()
#ifdef MSG_DONTROUTE
insint(d, "MSG_DONTROUTE", MSG_DONTROUTE);
#endif
+#ifdef MSG_DONTWAIT
+ insint(d, "MSG_DONWAIT", MSG_DONTWAIT);
+#endif
#ifdef MSG_EOR
insint(d, "MSG_EOR", MSG_EOR);
#endif