diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-05-31 22:30:30 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-05-31 22:30:30 +0000 |
commit | 7f7f2e056c71cd892f2c0d1b02341dc641358c49 (patch) | |
tree | c553c39e17c84adba0e10e2e659712e4a342ac5f | |
parent | 7b2723907c1e683008b5ced60b472a520bb1fd51 (diff) | |
download | libapr-7f7f2e056c71cd892f2c0d1b02341dc641358c49.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/0.9.x@543288 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 d3fe4a520..fc2bcb731 100644 --- a/network_io/win32/sockets.c +++ b/network_io/win32/sockets.c @@ -108,7 +108,7 @@ APR_DECLARE(apr_status_t) apr_socket_create_ex(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 @@ -123,7 +123,7 @@ APR_DECLARE(apr_status_t) apr_socket_create_ex(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; |