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

friends.  (Modified version of patch #101682 from Neil Schemenauer)
This commit is contained in:
Andrew M. Kuchling 2000-09-28 21:33:44 +00:00
parent 0cdfc92a19
commit 36d97ebd58
1 changed files with 8 additions and 0 deletions

View 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