Mesa (master): gallium: os_process fixes for Android
Emil Velikov
evelikov at kemper.freedesktop.org
Fri Jun 30 07:48:10 UTC 2017
Module: Mesa
Branch: master
Commit: cceb2d5c4164bae609c2fdb84adde56305a3decb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cceb2d5c4164bae609c2fdb84adde56305a3decb
Author: Rob Herring <robh at kernel.org>
Date: Wed Jun 28 17:52:28 2017 -0400
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 at kernel.org>
Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
---
src/gallium/auxiliary/os/os_process.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/os/os_process.c b/src/gallium/auxiliary/os/os_process.c
index 6622b9b2bc..035bd228e7 100644
--- a/src/gallium/auxiliary/os/os_process.c
+++ b/src/gallium/auxiliary/os/os_process.c
@@ -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)
More information about the mesa-commit
mailing list