Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 12492:1725e802e3eb legacy-trunk
Patch by Charles G Waldman:
1) Adds MSG_DONTWAIT if defined (I needed this)
2) Spells "coreectly" correctly ;-)
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 25 Apr 2000 21:34:53 +0000 |
| parents | a3e1fecb43c6 |
| children | 04cfa1341a50 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Tue Apr 25 21:13:24 2000 +0000 +++ b/Modules/socketmodule.c Tue Apr 25 21:34:53 2000 +0000 @@ -524,7 +524,7 @@ } #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 @@ #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
