From a2698a0048298bebc21708c9f86c55ed1f4406ef Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 23 May 2023 14:04:40 +1000 Subject: [PATCH] Fix compilation error relating to dlopen() and family. --- miniaudio.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/miniaudio.h b/miniaudio.h index 58d15ac4..2607a839 100644 --- a/miniaudio.h +++ b/miniaudio.h @@ -17721,6 +17721,13 @@ MA_API ma_result ma_job_queue_next(ma_job_queue* pQueue, ma_job* pJob) Dynamic Linking *******************************************************************************/ +#ifdef MA_POSIX + /* No need for dlfcn.h if we're not using runtime linking. */ + #ifndef MA_NO_RUNTIME_LINKING + #include + #endif +#endif + MA_API ma_handle ma_dlopen(ma_log* pLog, const char* filename) { #ifndef MA_NO_RUNTIME_LINKING