]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Fix compilation error when dacp support not needed
authorMike Brady <mikebrady@eircom.net>
Mon, 19 Mar 2018 17:31:02 +0000 (17:31 +0000)
committerMike Brady <mikebrady@eircom.net>
Mon, 19 Mar 2018 17:31:02 +0000 (17:31 +0000)
player.c

index d1107fb52e74818dc1ac6fba12596f886d0a3007..383abad019a8bfd611aa48214375d5e33836fc89 100644 (file)
--- a/player.c
+++ b/player.c
@@ -1603,7 +1603,9 @@ static void *player_thread_func(void *arg) {
 
   // stop looking elsewhere for DACP stuff
   conn->dacp_port = 0;
+#ifdef HAVE_DACP_CLIENT
   set_dacp_server_information(conn); // this will stop scanning until a port is registered by the code initiated by the mdns_dacp_monitor
+#endif
   // start an mdns/zeroconf thread to look for DACP messages containing our DACP_ID and getting the
   // port number
   // mdns_dacp_monitor(conn->dacp_id, &conn->dacp_port, &conn->dacp_private);