From commits-return-8560-apmail-apr-commits-archive=apr.apache.org@apr.apache.org Fri Aug 24 21:54:53 2007 Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 73985 invoked from network); 24 Aug 2007 21:54:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Aug 2007 21:54:51 -0000 Received: (qmail 94046 invoked by uid 500); 24 Aug 2007 21:54:48 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 93988 invoked by uid 500); 24 Aug 2007 21:54:47 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 93976 invoked by uid 99); 24 Aug 2007 21:54:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 14:54:47 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 21:54:50 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id C4D301A9832; Fri, 24 Aug 2007 14:54:30 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r569536 - /apr/apr/trunk/network_io/win32/sockets.c Date: Fri, 24 Aug 2007 21:54:30 -0000 To: commits@apr.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070824215430.C4D301A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: wrowe Date: Fri Aug 24 14:54:30 2007 New Revision: 569536 URL: http://svn.apache.org/viewvc?rev=569536&view=rev Log: I was experimenting with options on ELSE_WIN_OS_IS_ANSI, and realized this else combined with WCE is an oddball. Modified: apr/apr/trunk/network_io/win32/sockets.c Modified: apr/apr/trunk/network_io/win32/sockets.c URL: http://svn.apache.org/viewvc/apr/apr/trunk/network_io/win32/sockets.c?rev=569536&r1=569535&r2=569536&view=diff ============================================================================== --- apr/apr/trunk/network_io/win32/sockets.c (original) +++ apr/apr/trunk/network_io/win32/sockets.c Fri Aug 24 14:54:30 2007 @@ -128,9 +128,13 @@ SetHandleInformation((HANDLE) (*new)->socketdes, HANDLE_FLAG_INHERIT, 0); } +#if APR_HAS_ANSI_FS + /* only if APR_HAS_ANSI_FS && APR_HAS_UNICODE_FS */ + ELSE_WIN_OS_IS_ANSI +#endif #endif #if APR_HAS_ANSI_FS || defined(_WIN32_WCE) - ELSE_WIN_OS_IS_ANSI { + { HANDLE hProcess = GetCurrentProcess(); HANDLE dup; if (DuplicateHandle(hProcess, (HANDLE) (*new)->socketdes, hProcess,