diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2000-09-28 21:33:44 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2000-09-28 21:33:44 (GMT) |
commit | 36d97ebd5838241a2a4804cf7aa85cbe85b43fb2 (patch) | |
tree | e9194795275548ed3c1d77e4ef5d763d0ff5b283 | |
parent | 0cdfc92a1960384bd6a2f08c66b522ffd03230d7 (diff) | |
download | cpython-36d97ebd5838241a2a4804cf7aa85cbe85b43fb2.zip cpython-36d97ebd5838241a2a4804cf7aa85cbe85b43fb2.tar.gz cpython-36d97ebd5838241a2a4804cf7aa85cbe85b43fb2.tar.bz2 |
Add #ifdef's for platforms that don't have the constants POLLRDNORM and
friends. (Modified version of patch #101682 from Neil Schemenauer)
-rw-r--r-- | Modules/selectmodule.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 114ac35..008ffa4 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -641,10 +641,18 @@ initselect(void) insint(d, "POLLHUP", POLLHUP); insint(d, "POLLNVAL", POLLNVAL); +#ifdef POLLRDNORM insint(d, "POLLRDNORM", POLLRDNORM); +#endif +#ifdef POLLRDBAND insint(d, "POLLRDBAND", POLLRDBAND); +#endif +#ifdef POLLWRNORM insint(d, "POLLWRNORM", POLLWRNORM); +#endif +#ifdef POLLWRBAND insint(d, "POLLWRBAND", POLLWRBAND); +#endif #ifdef POLLMSG insint(d, "POLLMSG", POLLMSG); #endif |