Fix deamon mode on macos

This commit is contained in:
Camille Scholtz
2025-01-30 21:36:23 +01:00
committed by Max Kellermann
parent 407db96d4a
commit e3cf9bb0a1
5 changed files with 62 additions and 0 deletions

View File

@@ -61,4 +61,16 @@ win32_app_stopping();
#endif
#ifdef __APPLE__
/**
* If program is run as deamon on macos, fork very early to avoid objc runtime issues,
* and then calls mpd_main() with specified arguments.
* If program is run as a regular application calls mpd_main() immediately.
*/
int
apple_main(int argc, char *argv[]);
#endif
#endif