apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject svn commit: r543287 - /apr/apr/branches/1.2.x/network_io/win32/sockets.c
Date Thu, 31 May 2007 22:30:23 GMT
Author: wrowe
Date: Thu May 31 15:30:22 2007
New Revision: 543287

URL: http://svn.apache.org/viewvc?view=rev&rev=543287
Log:
SetHandleInformation is not supported on WinCE, but the Win 9x code path 
works fine if enabled (testsockets passes).  Modifes the #if's so the 
Win9x code path is also used for WinCE.

PR: 39859
Submitted by: Curt Arnold <carnold apache.org>
Backport: 543286

Modified:
    apr/apr/branches/1.2.x/network_io/win32/sockets.c

Modified: apr/apr/branches/1.2.x/network_io/win32/sockets.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/network_io/win32/sockets.c?view=diff&rev=543287&r1=543286&r2=543287
==============================================================================
--- apr/apr/branches/1.2.x/network_io/win32/sockets.c (original)
+++ apr/apr/branches/1.2.x/network_io/win32/sockets.c Thu May 31 15:30:22 2007
@@ -114,7 +114,7 @@
      * purposes, always transform the socket() created as a non-inherited
      * handle
      */
-#if APR_HAS_UNICODE_FS
+#if APR_HAS_UNICODE_FS && !defined(_WIN32_WCE)
     IF_WIN_OS_IS_UNICODE {
         /* A different approach.  Many users report errors such as 
          * (32538)An operation was attempted on something that is not 
@@ -129,7 +129,7 @@
                              HANDLE_FLAG_INHERIT, 0);
     }
 #endif
-#if APR_HAS_ANSI_FS
+#if APR_HAS_ANSI_FS || defined(_WIN32_WCE)
     ELSE_WIN_OS_IS_ANSI {
         HANDLE hProcess = GetCurrentProcess();
         HANDLE dup;



Mime
View raw message