Created
November 1, 2009 00:32
-
-
Save poppen/223333 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- tinytinyhttpd-0.0.9.orig/httpd.cxx 2009-10-07 20:57:11.000000000 +0900 | |
+++ tinytinyhttpd-0.0.9/httpd.cxx 2009-11-01 09:30:54.000000000 +0900 | |
@@ -1734,7 +1734,7 @@ | |
#if defined LINUX_SENDFILE_API | |
sent = sendfile(msgsock, fileno(res_info->read), NULL, total); | |
#elif defined FREEBSD_SENDFILE_API | |
- sendfile(msgsock, fileno(res_info->read), total, &sent, NULL, 0); | |
+ sent = sendfile(msgsock, fileno(res_info->read), NULL, total, NULL, NULL, 0); | |
#elif defined _WIN32 | |
if (!res_info->process && lpfnTransmitFile && lpfnTransmitFile( | |
msgsock, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment