From 6bb9c5cd1de49bbfd27a82f207d546ace5b7f08f Mon Sep 17 00:00:00 2001 From: yjogol Date: Sun, 5 Sep 2010 10:04:21 +0000 Subject: [PATCH] nhttpd 3.3.3 add largefile support for recorded movie streaming git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@748 e54a6e83-5905-42d5-8d5c-058d10e6a962 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a3478b752d755785dfebe6781f3693f85a4fb7b7 Author: yjogol Date: 2010-09-05 (Sun, 05 Sep 2010) ------------------ This commit was generated by Migit --- src/nhttpd/yhttpd_mods/mod_sendfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nhttpd/yhttpd_mods/mod_sendfile.cpp b/src/nhttpd/yhttpd_mods/mod_sendfile.cpp index 86326e1ae..c0a36ec8c 100644 --- a/src/nhttpd/yhttpd_mods/mod_sendfile.cpp +++ b/src/nhttpd/yhttpd_mods/mod_sendfile.cpp @@ -181,7 +181,7 @@ int CmodSendfile::OpenFile(CyhookHandler *, std::string fullfilename) { int fd = -1; std::string tmpstring; if (fullfilename.length() > 0) { - fd = open(fullfilename.c_str(), O_RDONLY); + fd = open(fullfilename.c_str(), O_RDONLY | O_LARGEFILE); if (fd <= 0) { aprintf("cannot open file %s: ", fullfilename.c_str()); dperror("");