From: Mike Brady Date: Mon, 19 Mar 2018 17:31:02 +0000 (+0000) Subject: Fix compilation error when dacp support not needed X-Git-Tag: 3.2RC1~7^2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5db1cbfc3d981af01a41919d30e18975b233cc62;p=thirdparty%2Fshairport-sync.git Fix compilation error when dacp support not needed --- 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);