diff --git a/src/webui/webui.c b/src/webui/webui.c index eb0ff965..8628fe6b 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -857,7 +857,11 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque) char range_buf[255]; char disposition[256]; off_t content_len, file_start, file_end, chunk; +#if defined(PLATFORM_LINUX) ssize_t r; +#elif defined(PLATFORM_FREEBSD) + off_t r; +#endif if(remain == NULL) return 404;