From 8beccbc3b690659a2d6e40cc8947c71235a1af15 Mon Sep 17 00:00:00 2001 From: Dmitri Tikhonov Date: Wed, 28 Oct 2020 08:40:07 -0400 Subject: [PATCH] Try something else --- bin/http_server.c | 2 ++ wincompat/vc_compat.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/http_server.c b/bin/http_server.c index 9c74f61..ee2fa31 100644 --- a/bin/http_server.c +++ b/bin/http_server.c @@ -1038,8 +1038,10 @@ http_server_on_close (lsquic_stream_t *stream, lsquic_stream_ctx_t *st_h) free(st_h->req_path); if (st_h->reader.lsqr_ctx) destroy_lsquic_reader_ctx(st_h->reader.lsqr_ctx); +#if HAVE_PREADV if (s_pwritev) close(st_h->file_fd); +#endif if (st_h->req) interop_server_hset_destroy(st_h->req); free(st_h); diff --git a/wincompat/vc_compat.h b/wincompat/vc_compat.h index cd7aae1..7ec334d 100644 --- a/wincompat/vc_compat.h +++ b/wincompat/vc_compat.h @@ -11,7 +11,6 @@ struct iovec { #define strncasecmp _strnicmp #define strdup _strdup #define PATH_MAX MAX_PATH -#define close _close #define posix_memalign(p, a, s) (((*(p)) = _aligned_malloc((s), (a))), *(p) ?0 :errno)