mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
AK+LibCore: Don't use unsupported features on Android
This commit is contained in:
parent
725584881a
commit
6e8f1549a3
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
||||||
#include <AK/Platform.h>
|
#include <AK/Platform.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
|
|
||||||
#if defined(AK_OS_LINUX) || defined(AK_OS_BSD_GENERIC) || defined(AK_OS_SOLARIS)
|
#if (defined(AK_OS_LINUX) && !defined(AK_OS_ANDROID)) || defined(AK_OS_BSD_GENERIC) || defined(AK_OS_SOLARIS)
|
||||||
# define EXECINFO_BACKTRACE
|
# define EXECINFO_BACKTRACE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -118,7 +118,7 @@ ErrorOr<String> Process::get_name()
|
||||||
if (rc != 0)
|
if (rc != 0)
|
||||||
return Error::from_syscall("get_process_name"sv, -rc);
|
return Error::from_syscall("get_process_name"sv, -rc);
|
||||||
return String::from_utf8(StringView { buffer, strlen(buffer) });
|
return String::from_utf8(StringView { buffer, strlen(buffer) });
|
||||||
#elif defined(AK_OS_LINUX)
|
#elif defined(AK_OS_LINUX) && !defined(AK_OS_ANDROID)
|
||||||
return String::from_utf8(StringView { program_invocation_name, strlen(program_invocation_name) });
|
return String::from_utf8(StringView { program_invocation_name, strlen(program_invocation_name) });
|
||||||
#elif defined(AK_OS_BSD_GENERIC)
|
#elif defined(AK_OS_BSD_GENERIC)
|
||||||
auto const* progname = getprogname();
|
auto const* progname = getprogname();
|
||||||
|
|
Loading…
Add table
Reference in a new issue