apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject [PATCH] Win32 apr_shutdown
Date Mon, 21 Oct 2002 21:26:02 GMT
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;


Mime
View raw message