From dev-return-8285-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Mon Oct 21 21:23:58 2002 Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 2854 invoked by uid 500); 21 Oct 2002 21:23:56 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 2841 invoked from network); 21 Oct 2002 21:23:56 -0000 From: "Bill Stoddard" To: "APR Development List" Subject: [PATCH] Win32 apr_shutdown Date: Mon, 21 Oct 2002 17:26:02 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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;