[Patches] tiny patch for socketmodule.c

Charles G Waldman cgw@fnal.gov
Tue, 25 Apr 2000 16:32:17 -0500 (CDT)


This patch does two things:

1)  Adds MSG_DONTWAIT if defined (I needed this)
2)  Spells "coreectly" correctly ;-)

Disclaimer:  http://www.python.org/patches/bugrelease.html

Index: Modules/socketmodule.c
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Modules/socketmodule.c,v
retrieving revision 1.104
diff -c -r1.104 socketmodule.c
*** socketmodule.c	2000/04/24 15:16:03	1.104
--- socketmodule.c	2000/04/25 21:30:55
***************
*** 524,530 ****
  	}
  
  #ifdef __BEOS__
! 	/* XXX: BeOS version of accept() doesn't set family coreectly */
  	addr->sa_family = AF_INET;
  #endif
  
--- 524,530 ----
  	}
  
  #ifdef __BEOS__
! 	/* XXX: BeOS version of accept() doesn't set family correctly */
  	addr->sa_family = AF_INET;
  #endif
  
***************
*** 2525,2530 ****
--- 2525,2533 ----
  #endif
  #ifdef	MSG_DONTROUTE
  	insint(d, "MSG_DONTROUTE", MSG_DONTROUTE);
+ #endif
+ #ifdef	MSG_DONTWAIT
+ 	insint(d, "MSG_DONWAIT", MSG_DONTWAIT);
  #endif
  #ifdef	MSG_EOR
  	insint(d, "MSG_EOR", MSG_EOR);