]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
timeshift: fix build without timeshift enabled, fixes #3107
authorJaroslav Kysela <perex@perex.cz>
Thu, 24 Sep 2015 16:01:10 +0000 (18:01 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 24 Sep 2015 16:01:10 +0000 (18:01 +0200)
src/api/api_timeshift.c

index 2dc01003215dee5a4ac4703166f8fff7841e94d5..c780eb776d65c83419fb875e9d28765081e6992a 100644 (file)
@@ -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