summaryrefslogtreecommitdiff
path: root/network_io/win32
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2007-05-31 22:29:06 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2007-05-31 22:29:06 +0000
commit64cbb232094aea7627141a8090e839dfab5acab6 (patch)
treebb9c3be9a4b3f7a5926d49830f31df1c67113227 /network_io/win32
parent05d0c93901602e065c040c06bda90e806e1af824 (diff)
downloadapr-64cbb232094aea7627141a8090e839dfab5acab6.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: https://svn.apache.org/repos/asf/apr/apr/trunk@543286 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io/win32')
-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;