diff options
author | Bradley Nicholes <bnicholes@apache.org> | 2004-07-26 23:06:45 +0000 |
---|---|---|
committer | Bradley Nicholes <bnicholes@apache.org> | 2004-07-26 23:06:45 +0000 |
commit | 2616ed5103c68286c974990a3805393a51e8cc34 (patch) | |
tree | 55a2f57179463dc710f96864bc19d5ebcc346b0a /network_io | |
parent | 819f465054c24929c48df064cd0b94b8c9063974 (diff) | |
download | apr-2616ed5103c68286c974990a3805393a51e8cc34.tar.gz |
Since this code only applies to sendfile, make sure that it is properly #ifdef'ed
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65290 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r-- | network_io/win32/sockets.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/network_io/win32/sockets.c b/network_io/win32/sockets.c index 82d16860b..464db5ac8 100644 --- a/network_io/win32/sockets.c +++ b/network_io/win32/sockets.c @@ -35,10 +35,12 @@ static apr_status_t socket_cleanup(void *sock) } thesocket->socketdes = INVALID_SOCKET; } +#if APR_HAS_SENDFILE if (thesocket->overlapped) { CloseHandle(thesocket->overlapped->hEvent); thesocket->overlapped = NULL; } +#endif return APR_SUCCESS; } |