From 44ac675a8b4bbd39129a01826a5251a09efcaae1 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Fri, 22 Oct 2021 00:24:33 +0200 Subject: [PATCH] bluetooth/native: Include util header for pa_msleep MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Commit 7fd89e491 ("bluetooth: Try to reconnect SCO") introduces a call to pa_msleep but failed to include the header, resulting in a: ../pulseaudio/src/modules/bluetooth/backend-native.c: In function ‘sco_acquire_cb’: ../pulseaudio/src/modules/bluetooth/backend-native.c:336:17: warning: implicit declaration of function ‘pa_msleep’ [-Wimplicit-function-declaration] 336 | pa_msleep(300); | ^~~~~~~~~ (Un)fortunately this implicit declaration gets resolved at link-time, otherwise the issue would have been caught sooner. Fixes: 7fd89e491 ("bluetooth: Try to reconnect SCO") Part-of: --- src/modules/bluetooth/backend-native.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/modules/bluetooth/backend-native.c b/src/modules/bluetooth/backend-native.c index 88ce89dd8..a7fc48e0f 100644 --- a/src/modules/bluetooth/backend-native.c +++ b/src/modules/bluetooth/backend-native.c @@ -21,6 +21,8 @@ #include #endif +#include + #include #include #include