From: Jaroslav Kysela Date: Thu, 24 Sep 2015 16:01:10 +0000 (+0200) Subject: timeshift: fix build without timeshift enabled, fixes #3107 X-Git-Tag: v4.2.1~2065 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=754bc3878c6a6222232b09fd960b290f27c8da58;p=thirdparty%2Ftvheadend.git timeshift: fix build without timeshift enabled, fixes #3107 --- diff --git a/src/api/api_timeshift.c b/src/api/api_timeshift.c index 2dc010032..c780eb776 100644 --- a/src/api/api_timeshift.c +++ b/src/api/api_timeshift.c @@ -23,6 +23,8 @@ #include "api.h" #include "timeshift.h" +#if ENABLE_TIMESHIFT + void api_timeshift_init ( void ) { @@ -34,3 +36,12 @@ api_timeshift_init ( void ) api_register_all(ah); } + +#else + +void +api_timeshift_init ( void ) +{ +} + +#endif