Skip to content

Instantly share code, notes, and snippets.

@poppen
Created November 1, 2009 00:32
Show Gist options
  • Save poppen/223333 to your computer and use it in GitHub Desktop.
Save poppen/223333 to your computer and use it in GitHub Desktop.
--- 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