From: Rob Herring Date: Wed, 28 Jun 2017 21:52:28 +0000 (-0400) Subject: gallium: os_process fixes for Android X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cceb2d5c4164bae609c2fdb84adde56305a3decb;p=mesa.git 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 Reviewed-by: Tapani Pälli Reviewed-by: Emil Velikov --- diff --git a/src/gallium/auxiliary/os/os_process.c b/src/gallium/auxiliary/os/os_process.c index 6622b9b2bc0..035bd228e76 100644 --- a/src/gallium/auxiliary/os/os_process.c +++ b/src/gallium/auxiliary/os/os_process.c @@ -34,7 +34,7 @@ # include #elif defined(__GLIBC__) || defined(__CYGWIN__) # include -#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE) +#elif defined(PIPE_OS_BSD) || defined(PIPE_OS_APPLE) || defined(PIPE_OS_ANDROID) # include #elif defined(PIPE_OS_HAIKU) # include @@ -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)