Kaydet (Commit) f95c3e0e authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Look for lo_main() and not main() on Android

üst 21c0c69d
......@@ -130,8 +130,16 @@ oslProcessError SAL_CALL osl_bootstrap_getExecutableFile_Impl (
{
oslProcessError result = osl_Process_E_NotFound;
#ifdef ANDROID
/* On Android we want the address of the "lo_main()" function, as
* that is what corresponds to "main()" in LibreOffice programs on
* normal desktop OSes.
*/
void * addr = dlsym (RTLD_DEFAULT, "lo_main");
#else
/* Determine address of "main()" function. */
void * addr = dlsym (RTLD_DEFAULT, "main");
#endif
if (addr != 0)
{
/* Determine module URL. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment