[Python-checkins] CVS: python/dist/src/Modules selectmodule.c,2.47,2.48

A.M. Kuchling python-dev@python.org
Thu, 28 Sep 2000 14:33:47 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv3484

Modified Files:
	selectmodule.c 
Log Message:
Add #ifdef's for platforms that don't have the constants POLLRDNORM and
    friends.  (Modified version of patch #101682 from Neil Schemenauer)


Index: selectmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/selectmodule.c,v
retrieving revision 2.47
retrieving revision 2.48
diff -C2 -r2.47 -r2.48
*** selectmodule.c	2000/09/26 05:46:01	2.47
--- selectmodule.c	2000/09/28 21:33:44	2.48
***************
*** 642,649 ****
--- 642,657 ----
  	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);