]> granicus.if.org Git - python/commitdiff
Add #ifdef's for platforms that don't have the constants POLLRDNORM and
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 28 Sep 2000 21:33:44 +0000 (21:33 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 28 Sep 2000 21:33:44 +0000 (21:33 +0000)
    friends.  (Modified version of patch #101682 from Neil Schemenauer)

Modules/selectmodule.c

index 114ac35fb7ab751d736271d34f90e45ddffeaf0b..008ffa4dd20f7df347b55a415b87c9f95fe1ec65 100644 (file)
@@ -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