From: Andrew M. Kuchling Date: Thu, 28 Sep 2000 21:33:44 +0000 (+0000) Subject: Add #ifdef's for platforms that don't have the constants POLLRDNORM and X-Git-Tag: v2.0c1~218 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36d97ebd5838241a2a4804cf7aa85cbe85b43fb2;p=python Add #ifdef's for platforms that don't have the constants POLLRDNORM and friends. (Modified version of patch #101682 from Neil Schemenauer) --- diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 114ac35fb7..008ffa4dd2 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