macos: Add missing import statement
authorRalph Seichter <gitlab@seichter.de>
Thu, 10 Sep 2020 18:25:05 +0000 (20:25 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 28 Sep 2020 12:44:38 +0000 (15:44 +0300)
Add missing import of util.h. This fixes a build failure with the
Xcode 12 command line tools which manifests as follows:

  error: implicit declaration of function 'pa_thread_make_realtime'
  is invalid in C99 [-Werror,-Wimplicit-function-declaration]

Ref https://trac.macports.org/ticket/61107

src/modules/macosx/module-coreaudio-device.c

index b9dffb937f8e88ef572400d0deed7a6142379f61..9bdac111f56bb30099b51541b7188cb474a49f4a 100644 (file)
@@ -27,6 +27,7 @@
 #include <config.h>
 #endif
 
+#include <pulse/util.h>
 #include <pulse/xmalloc.h>
 
 #include <pulsecore/sink.h>