Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows (mingw-w64) support for libh2o #380

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ignore O_CLOEXEC in file.c for windows
  • Loading branch information
martell committed Jun 29, 2015
commit a5f2ebac83011ad50b7f47c9e85029df0846a01c
4 changes: 4 additions & 0 deletions lib/handler/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@

#include "h2o.h"

#ifdef _WIN32
#define O_CLOEXEC 0
#endif

#define MAX_BUF_SIZE 65000
#define BOUNDARY_SIZE 20
#define FIXED_PART_SIZE (sizeof("\r\n--") - 1 + BOUNDARY_SIZE + sizeof("\r\nContent-Range: bytes=-/\r\nContent-Type: \r\n\r\n") - 1)
Expand Down