summaryrefslogtreecommitdiff
path: root/network_io
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-05-31 22:29:06 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-05-31 22:29:06 +0000
commit70e991ce642b0252aacc84816f6a2a8072ada210 (patch)
treebb9c3be9a4b3f7a5926d49830f31df1c67113227 /network_io
parentee23306e76805ceb9d6eecbec4eff6fa35727504 (diff)
downloadlibapr-70e991ce642b0252aacc84816f6a2a8072ada210.tar.gz
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> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@543286 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r--network_io/win32/sockets.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/network_io/win32/sockets.c b/network_io/win32/sockets.c
index fa68ce6b2..408e9d05b 100644
--- a/network_io/win32/sockets.c
+++ b/network_io/win32/sockets.c
@@ -114,7 +114,7 @@ APR_DECLARE(apr_status_t) apr_socket_create(apr_socket_t **new, int family,
* 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 @@ APR_DECLARE(apr_status_t) apr_socket_create(apr_socket_t **new, int family,
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;