From: Steinar H. Gunderson Date: Thu, 19 Sep 2013 09:34:54 +0000 (+0200) Subject: Fix compilation on 32-bit systems. X-Git-Tag: 1.0.1~2 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=91c6757ac2629def71170cc7298bfcb2b306681d Fix compilation on 32-bit systems. --- diff --git a/server.cpp b/server.cpp index a5f6a32..0ed44fe 100644 --- a/server.cpp +++ b/server.cpp @@ -432,7 +432,7 @@ sending_data_again: ssize_t ret; do { - loff_t offset = client->stream_pos % stream->backlog_size; + off_t offset = client->stream_pos % stream->backlog_size; ret = sendfile(client->sock, stream->data_fd, &offset, bytes_to_send); } while (ret == -1 && errno == EINTR);