mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 14:40:13 +01:00
gallium: os_process fixes for Android
The function getprogname() is available on Android, since it reuses various BSD solutions C runtime. Signed-off-by: Rob Herring <robh@kernel.org> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
2ecdedb8d4
commit
cceb2d5c41
1 changed files with 2 additions and 2 deletions
|
|
@ -34,7 +34,7 @@
|
|||
# include <windows.h>
|
||||
#elif defined(__GLIBC__) || defined(__CYGWIN__)
|
||||
# include <errno.h>
|
||||
#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE)
|
||||
#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_ANDROID)
|
||||
# include <stdlib.h>
|
||||
#elif defined(PIPE_OS_HAIKU)
|
||||
# include <kernel/OS.h>
|
||||
|
|
@ -86,7 +86,7 @@ os_get_process_name(char *procname, size_t size)
|
|||
|
||||
#elif defined(__GLIBC__) || defined(__CYGWIN__)
|
||||
name = program_invocation_short_name;
|
||||
#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE)
|
||||
#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_ANDROID)
|
||||
/* *BSD and OS X */
|
||||
name = getprogname();
|
||||
#elif defined(PIPE_OS_HAIKU)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue