From 5db1cbfc3d981af01a41919d30e18975b233cc62 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Mon, 19 Mar 2018 17:31:02 +0000 Subject: [PATCH] Fix compilation error when dacp support not needed --- player.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/player.c b/player.c index d1107fb5..383abad0 100644 --- 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);