Kaydet (Commit) 36d97ebd authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Add #ifdef's for platforms that don't have the constants POLLRDNORM and

    friends.  (Modified version of patch #101682 from Neil Schemenauer)
üst 0cdfc92a
...@@ -641,10 +641,18 @@ initselect(void) ...@@ -641,10 +641,18 @@ initselect(void)
insint(d, "POLLHUP", POLLHUP); insint(d, "POLLHUP", POLLHUP);
insint(d, "POLLNVAL", POLLNVAL); insint(d, "POLLNVAL", POLLNVAL);
#ifdef POLLRDNORM
insint(d, "POLLRDNORM", POLLRDNORM); insint(d, "POLLRDNORM", POLLRDNORM);
#endif
#ifdef POLLRDBAND
insint(d, "POLLRDBAND", POLLRDBAND); insint(d, "POLLRDBAND", POLLRDBAND);
#endif
#ifdef POLLWRNORM
insint(d, "POLLWRNORM", POLLWRNORM); insint(d, "POLLWRNORM", POLLWRNORM);
#endif
#ifdef POLLWRBAND
insint(d, "POLLWRBAND", POLLWRBAND); insint(d, "POLLWRBAND", POLLWRBAND);
#endif
#ifdef POLLMSG #ifdef POLLMSG
insint(d, "POLLMSG", POLLMSG); insint(d, "POLLMSG", POLLMSG);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment