aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_aaudio.cpp
diff options
context:
space:
mode:
authorivan-matveev <[email protected]>2022-08-22 19:21:58 +0300
committerPaul Adenot <[email protected]>2022-09-06 14:38:56 +0200
commitd93c82fdd28c681fd1579944cc1c240d242c4c4b (patch)
tree469ee37774fadc2f18866aa546fec5944ff82c87 /src/cubeb_aaudio.cpp
parentdc511c6b3597b6384d28949285b9289e009830ea (diff)
downloadcubeb-d93c82fdd28c681fd1579944cc1c240d242c4c4b.tar.gz
cubeb-d93c82fdd28c681fd1579944cc1c240d242c4c4b.zip
Add #ifndef around dlclose() to allow build with "LAZY_LOAD_LIBS=OFF" cmake argument.
Diffstat (limited to 'src/cubeb_aaudio.cpp')
-rw-r--r--src/cubeb_aaudio.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cubeb_aaudio.cpp b/src/cubeb_aaudio.cpp
index 6076f1d..9aecb9b 100644
--- a/src/cubeb_aaudio.cpp
+++ b/src/cubeb_aaudio.cpp
@@ -463,10 +463,11 @@ aaudio_destroy(cubeb * ctx)
if (ctx->state.notifier.joinable()) {
ctx->state.notifier.join();
}
-
+#ifndef DISABLE_LIBAAUDIO_DLOPEN
if (ctx->libaaudio) {
dlclose(ctx->libaaudio);
}
+#endif // #ifndef DISABLE_LIBAAUDIO_DLOPEN
delete ctx;
}