]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
capmt: fix compilation without linuxdvb support
authorJaroslav Kysela <perex@perex.cz>
Tue, 10 Jun 2014 12:51:14 +0000 (14:51 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 10 Jun 2014 12:51:14 +0000 (14:51 +0200)
src/descrambler/capmt.c

index 3bfd701a8957d1ff27f0f9fd941d5d37402d0215..cedd5a825e8362dcb9599448a46da3de3dd04276 100644 (file)
@@ -869,6 +869,7 @@ capmt_notify_server(capmt_t *capmt, capmt_service_t *ct)
   pthread_mutex_unlock(&capmt->capmt_mutex);
 }
 
+#if CONFIG_LINUXDVB
 static void
 capmt_abort(capmt_t *capmt, int keystate)
 {
@@ -890,6 +891,7 @@ capmt_abort(capmt_t *capmt, int keystate)
   }
   pthread_mutex_unlock(&capmt->capmt_mutex);
 }
+#endif
 
 static void
 capmt_process_key(capmt_t *capmt, uint8_t adapter, uint16_t seq,
@@ -1033,6 +1035,7 @@ show_connection(capmt_t *capmt, const char *what)
   }
 }
 
+#if CONFIG_LINUXDVB
 static void 
 handle_ca0(capmt_t *capmt) {
   int i, ret, recvsock, adapter, nfds, cmd_size;
@@ -1131,6 +1134,7 @@ handle_ca0(capmt_t *capmt) {
   tvhpoll_destroy(capmt->capmt_poll);
   capmt->capmt_poll = NULL;
 }
+#endif
 
 static void
 handle_single(capmt_t *capmt)
@@ -1219,6 +1223,7 @@ handle_single(capmt_t *capmt)
   tvhpoll_destroy(capmt->capmt_poll);
   capmt->capmt_poll = NULL;
 }
+
 #if CONFIG_LINUXDVB
 static void 
 handle_ca0_wrapper(capmt_t *capmt)