From: Brendan Shanks bshanks@codeweavers.com
--- dlls/ntdll/unix/loader.c | 16 ++++++++++++++++ dlls/ntdll/unixlib.h | 1 + 2 files changed, 17 insertions(+)
diff --git a/dlls/ntdll/unix/loader.c b/dlls/ntdll/unix/loader.c index cb700dd80e8..dbfb994282b 100644 --- a/dlls/ntdll/unix/loader.c +++ b/dlls/ntdll/unix/loader.c @@ -1129,6 +1129,20 @@ static NTSTATUS unwind_builtin_dll( void *args ) #endif /* SO_DLLS_SUPPORTED */
+/*********************************************************************** + * run_mac_cfrunloop + */ +static NTSTATUS run_mac_cfrunloop( void *args ) +{ +#ifdef __APPLE__ + CFRunLoopRun(); /* Should never return, except on error. */ + return STATUS_SUCCESS; +#else + return STATUS_NOT_IMPLEMENTED; +#endif +} + + static const unixlib_entry_t unix_call_funcs[] = { load_so_dll, @@ -1139,6 +1153,7 @@ static const unixlib_entry_t unix_call_funcs[] = unixcall_wine_server_handle_to_fd, unixcall_wine_spawnvp, system_time_precise, + run_mac_cfrunloop, };
@@ -1157,6 +1172,7 @@ const unixlib_entry_t unix_call_wow64_funcs[] = wow64_wine_server_handle_to_fd, wow64_wine_spawnvp, system_time_precise, + run_mac_cfrunloop, };
#endif /* _WIN64 */ diff --git a/dlls/ntdll/unixlib.h b/dlls/ntdll/unixlib.h index 9cb444342fe..ef2f974f59a 100644 --- a/dlls/ntdll/unixlib.h +++ b/dlls/ntdll/unixlib.h @@ -76,6 +76,7 @@ enum ntdll_unix_funcs unix_wine_server_handle_to_fd, unix_wine_spawnvp, unix_system_time_precise, + unix_mac_run_cfrunloop, };
extern unixlib_handle_t __wine_unixlib_handle;