You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2013/08/30 02:50:55 UTC
[3/3] git commit: Fixed clang return-type build error in os::sendfile.
Fixed clang return-type build error in os::sendfile.
From: Vinson Lee <vl...@freedesktop.org>
Review: https://reviews.apache.org/r/13840
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/9bcdcca2
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/9bcdcca2
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/9bcdcca2
Branch: refs/heads/master
Commit: 9bcdcca29e65ba5e851fec413a50ef4127799e35
Parents: f94a93b
Author: Benjamin Mahler <bm...@twitter.com>
Authored: Thu Aug 29 17:18:05 2013 -0700
Committer: Benjamin Mahler <bm...@twitter.com>
Committed: Thu Aug 29 17:42:27 2013 -0700
----------------------------------------------------------------------
.../libprocess/3rdparty/stout/include/stout/os/sendfile.hpp | 5 +++++
1 file changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/9bcdcca2/3rdparty/libprocess/3rdparty/stout/include/stout/os/sendfile.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/os/sendfile.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/os/sendfile.hpp
index b41ba63..668e4da 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/os/sendfile.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/os/sendfile.hpp
@@ -12,6 +12,9 @@
#include <sys/uio.h>
#endif // __APPLE__
+#ifdef __linux__
+#include <stout/fatal.hpp>
+#endif // __linux__
#include <stout/os/signals.hpp>
namespace os {
@@ -30,6 +33,8 @@ inline ssize_t sendfile(int s, int fd, off_t offset, size_t length)
// This will set errno to EPIPE if a SIGPIPE occurs.
return ::sendfile(s, fd, &offset, length);
}
+ fatal("Unreachable statement");
+ return -1;
#elif defined __APPLE__
// On OS X, sendfile does not need to have SIGPIPE suppressed.
off_t _length = static_cast<off_t>(length);