mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
do plugins on apple
This commit is contained in:
parent
d768ad7f0f
commit
8312e4430c
@ -70,6 +70,15 @@ int csync_vio_init(CSYNC *ctx, const char *module, const char *args) {
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
if (lstat(path, &sb) < 0) {
|
||||
SAFE_FREE(path);
|
||||
if (asprintf(&path, "../Plugins/csync_%s.%s", module, MODULE_EXTENSION) < 0) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
ctx->module.handle = dlopen(path, RTLD_LAZY);
|
||||
SAFE_FREE(path);
|
||||
if ((err = dlerror()) != NULL) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user