mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 19:57:45 +03:00
LibCore: Use BSD implementation of Process::get_name() on Haiku
This commit is contained in:
parent
0816bbe727
commit
cecedc57eb
Notes:
sideshowbarker
2024-07-19 16:51:27 +09:00
Author: https://github.com/ghost Commit: https://github.com/SerenityOS/serenity/commit/cecedc57eb5 Pull-request: https://github.com/SerenityOS/serenity/pull/20808 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/diversys
@ -127,7 +127,7 @@ ErrorOr<String> Process::get_name()
|
||||
return String::from_utf8(StringView { buffer, strlen(buffer) });
|
||||
#elif defined(AK_LIBC_GLIBC) || (defined(AK_OS_LINUX) && !defined(AK_OS_ANDROID))
|
||||
return String::from_utf8(StringView { program_invocation_name, strlen(program_invocation_name) });
|
||||
#elif defined(AK_OS_BSD_GENERIC)
|
||||
#elif defined(AK_OS_BSD_GENERIC) || defined(AK_OS_HAIKU)
|
||||
auto const* progname = getprogname();
|
||||
return String::from_utf8(StringView { progname, strlen(progname) });
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user