summaryrefslogtreecommitdiff
path: root/network_io
diff options
context:
space:
mode:
authorbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2004-07-26 23:06:45 +0000
committerbnicholes <bnicholes@13f79535-47bb-0310-9956-ffa450edef68>2004-07-26 23:06:45 +0000
commitffc00530e3d0055659d5f6513290366b932e201e (patch)
tree55a2f57179463dc710f96864bc19d5ebcc346b0a /network_io
parentf15b29348c21f62fc310bd8359845d81410a45f5 (diff)
downloadlibapr-ffc00530e3d0055659d5f6513290366b932e201e.tar.gz
Since this code only applies to sendfile, make sure that it is properly #ifdef'ed
git-svn-id: http://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.c2
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;
}