1
0
mirror of https://github.com/fumiama/simple-kanban.git synced 2026-06-05 00:10:29 +08:00

再次修复linux下的sendfile

This commit is contained in:
fumiama
2021-05-03 00:32:44 +08:00
parent 410c540233
commit 4ca5bd1434
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ int main(int argc,char *argv[]) { //usage: ./client host port
FILE *fp = NULL;
fp = fopen(buf, "rb");
if(fp) {
off_t len;
off_t len = 0;
file_size = (uint32_t)fileSize(buf);
#if __APPLE__
struct iovec headers;