Allan Edwards ran across this one while debugging a problem with 2.0 closing sockets early. I'm pretty sure this was a quick and dirty way to detect whether APR was being compiled for WINCE or not and the check was incorrect (SD_RECEIVE is #defined to 0 on NT/2000).
Any comments before I commit this? Index: sockets.c =================================================================== RCS file: /home/cvs/apr/network_io/win32/sockets.c,v retrieving revision 1.89 diff -u -r1.89 sockets.c --- sockets.c 18 Oct 2002 15:08:09 -0000 1.89 +++ sockets.c 21 Oct 2002 21:21:24 -0000 @@ -190,7 +190,7 @@ { int winhow = 0; -#if SD_RECEIVE +#ifdef SD_RECEIVE switch (how) { case APR_SHUTDOWN_READ: { winhow = SD_RECEIVE;