diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-05-31 22:30:22 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-05-31 22:30:22 +0000 |
commit | b818af5e4f095b05cbc6da8441614efc450a0c73 (patch) | |
tree | 68132a9c174584950afec19007a352eeec540a3d | |
parent | 59e101c785095a409a50da8e781433a7e70f1532 (diff) | |
download | libapr-b818af5e4f095b05cbc6da8441614efc450a0c73.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>
Backport: 543286
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.2.x@543287 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | network_io/win32/sockets.c | 4 |
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; |