add darwin dylib ifdefs for shared libs

Co-Authored-By: Quote Walker <operz@coralcmd.net>
This commit is contained in:
Nishi 2026-04-29 13:45:32 +09:00
commit e618144fbc
2 changed files with 8 additions and 0 deletions

View file

@ -68,7 +68,11 @@ void MwLLDestroyCommon(MwLL handle) {
#ifdef USE_DBUS
MwBool MwLLDBusFuncSetup(MwLLDBusFuncTable* tbl) {
#ifdef __APPLE__
tbl->lib = MwDynamicOpen("libdbus-1.dylib");
#else
tbl->lib = MwDynamicOpen("libdbus-1.so");
#endif
if(!tbl->lib) {
fprintf(stderr, "[WARNING] dbus library (libdbus-1.so) not found, will not be able to check for any XDG settings.\n");
return MwFALSE;